Values Discovery

Values Discovery · GPT Actions

Meaning Notes Unauthed API

  • POST /api/note/anonymousCreate a new note, without requiring authentication
原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "Meaning Notes Unauthed API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://try.meaningalignment.org"
    }
  ],
  "paths": {
    "/api/note/anonymous": {
      "post": {
        "operationId": "CreateNoteAnonymous",
        "x-openai-isConsequential": false,
        "summary": "Create a new note, without requiring authentication",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A confirmation of the note creation with values card image and link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoteResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NoteRequest": {
        "type": "object",
        "required": [
          "noteBody",
          "noteTitle",
          "noteType",
          "newCard"
        ],
        "properties": {
          "noteBody": {
            "type": "string",
            "description": "A paragraph or two in journalistic style, reporting on the context in which this source of meaning applies, and the events or encounters that led to the speaker's appreciation, emotion, admiration, or choice."
          },
          "noteTitle": {
            "type": "string",
            "nullable": true,
            "description": "A 2-5 word title for the note, summarizing the encounter (different from the title of the values card)"
          },
          "noteType": {
            "type": "string",
            "enum": [
              "appreciation",
              "emotion",
              "admiration",
              "choice"
            ]
          },
          "newCard": {
            "type": "object",
            "required": [
              "title",
              "instructionsShort",
              "attentionPolicies"
            ],
            "description": "The values card that the note is about",
            "properties": {
              "attentionPolicies": {
                "type": "array",
                "description": "Attention policies that make up the user's source of meaning",
                "items": {
                  "type": "string"
                }
              },
              "instructionsShort": {
                "type": "string",
                "description": "Write an instruction in first person voice, for how the speaker could act so as to stay in touch with this source of meaning. (Less than 20 words)"
              },
              "potentialTitles": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Suggest 8 potential titles for this source of meaning, each title of 2-4 words."
              },
              "title": {
                "type": "string",
                "description": "Pick the title that best would distinguish this from other sources of meaning other people might have, and that isn't cheesy."
              }
            }
          }
        }
      },
      "NoteResponse": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string"
          },
          "noteImage": {
            "type": "string"
          },
          "noteUrl": {
            "type": "string"
          }
        }
      }
    }
  }
}

Meaning Notes Authenticated API

  • POST /api/noteCreate a new note
原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "Meaning Notes Authenticated API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://tools.meaningalignment.org"
    }
  ],
  "paths": {
    "/api/note": {
      "post": {
        "operationId": "CreateNote",
        "x-openai-isConsequential": false,
        "summary": "Create a new note",
        "security": [
          {
            "oauth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A confirmation of the note creation with values card image and link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoteResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "securitySchemes": {
    "oauth": {
      "type": "oauth2",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://tools.meaningalignment.org/auth/oauth",
          "tokenUrl": "https://tools.meaningalignment.org/auth/token",
          "scopes": {}
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NoteRequest": {
        "type": "object",
        "required": [
          "noteBody",
          "noteTitle",
          "noteType",
          "newCard"
        ],
        "properties": {
          "noteBody": {
            "type": "string",
            "description": "A paragraph or two in journalistic style, reporting on the context in which this source of meaning applies, and the events or encounters that led to the speaker's appreciation, emotion, admiration, or choice."
          },
          "noteTitle": {
            "type": "string",
            "nullable": true,
            "description": "A 2-5 word title for the note, summarizing the encounter (different from the title of the values card)"
          },
          "noteType": {
            "type": "string",
            "enum": [
              "appreciation",
              "emotion",
              "admiration",
              "choice"
            ]
          },
          "newCard": {
            "type": "object",
            "required": [
              "title",
              "instructionsShort",
              "attentionPolicies"
            ],
            "description": "The values card that the note is about",
            "properties": {
              "attentionPolicies": {
                "type": "array",
                "description": "Attention policies that make up the user's source of meaning",
                "items": {
                  "type": "string"
                }
              },
              "instructionsShort": {
                "type": "string",
                "description": "Write an instruction in first person voice, for how the speaker could act so as to stay in touch with this source of meaning. (Less than 20 words)"
              },
              "potentialTitles": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Suggest 8 potential titles for this source of meaning, each title of 2-4 words."
              },
              "title": {
                "type": "string",
                "description": "Pick the title that best would distinguish this from other sources of meaning other people might have, and that isn't cheesy."
              }
            }
          }
        }
      },
      "NoteResponse": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string"
          },
          "noteImage": {
            "type": "string"
          },
          "noteUrl": {
            "type": "string"
          }
        }
      }
    }
  }
}