components: schemas: AddLabelOp: description: "Pydantic schema for a label add operation. Adds a new label to\ \ the label data with the given parameters.\n\nAttributes:\n op: The string\ \ literal 'add'.\n dirty: Boolean whether to mark the label as dirty.\n\ \ entity_group: Optional entity group assigned to the label.\n score:\ \ Float score between 0.0 and 1.0 representing how likely this label is to\ \ be an entity.\n start_pos: Inclusive start position in the chapter text.\n\ \ end_pos: Exclusive end position in the chapter text." properties: dirty: default: true title: Dirty type: boolean endPos: minimum: 0.0 title: Endpos type: integer entityGroup: anyOf: - maxLength: 64 type: string - type: 'null' title: Entitygroup op: const: add title: Op type: string score: default: 1.0 maximum: 1.0 minimum: 0.0 title: Score type: number startPos: minimum: 0.0 title: Startpos type: integer required: - op - startPos - endPos title: AddLabelOp type: object AutoLabel: description: "Pydantic schema for a single auto-labeled data entry with its\ \ label data.\n\nAttributes:\n auto_label_id: UUID identifier for this\ \ AutoLabel.\n auto_label_data: List of labels produced by the NER model,\ \ or None if not yet complete.\n auto_label_status: Labeling progress for\ \ this autolabel.\n auto_label_message: Details on status (e.g. failure\ \ reason).\n auto_label_last_job_id: Job id of last request to autogenerate.\n\ \ chapter_content_id: UUID of chapter content this AutoLabel is for.\n\ \ run_id: UUID of the AutoLabelRun this autolabel belongs to." properties: autoLabelData: anyOf: - items: $ref: '#/components/schemas/LabelBase' type: array - type: 'null' title: Autolabeldata autoLabelId: format: uuid title: Autolabelid type: string autoLabelLastJobId: anyOf: - format: uuid type: string - type: 'null' title: Autolabellastjobid autoLabelMessage: anyOf: - type: string - type: 'null' title: Autolabelmessage autoLabelStatus: $ref: '#/components/schemas/AutoLabelProgress' chapterContentId: format: uuid title: Chaptercontentid type: string runId: format: uuid title: Runid type: string required: - autoLabelId - autoLabelStatus - chapterContentId - runId title: AutoLabel type: object AutoLabelMeta: description: "Pydantic schema for auto-label metadata (no label data payload).\n\ \nAttributes:\n auto_label_id: UUID identifier for this AutoLabel.\n \ \ auto_label_status: Labeling progress for this autolabel.\n auto_label_message:\ \ Details on status.\n auto_label_last_job_id: Job id of last request to\ \ autogenerate.\n chapter_content_id: UUID of chapter content this AutoLabel\ \ is for.\n run_id: UUID of the AutoLabelRun this autolabel belongs to." properties: autoLabelId: format: uuid title: Autolabelid type: string autoLabelLastJobId: anyOf: - format: uuid type: string - type: 'null' title: Autolabellastjobid autoLabelMessage: anyOf: - type: string - type: 'null' title: Autolabelmessage autoLabelStatus: $ref: '#/components/schemas/AutoLabelProgress' chapterContentId: format: uuid title: Chaptercontentid type: string runId: format: uuid title: Runid type: string required: - autoLabelId - autoLabelStatus - chapterContentId - runId title: AutoLabelMeta type: object AutoLabelMetaWithCid: properties: autoLabelMeta: $ref: '#/components/schemas/AutoLabelMeta' chapterId: format: uuid title: Chapterid type: string required: - autoLabelMeta - chapterId title: AutoLabelMetaWithCid type: object AutoLabelProgress: description: Status for an autolabel in database. One of 'failed', 'pending', 'processing', 'done' enum: - failed - pending - processing - done title: AutoLabelProgress type: string AutoLabelRun: description: "Pydantic schema for an autolabel run (batch).\n\nA run groups\ \ autolabels created together in a single request.\n\nAttributes:\n run_id:\ \ UUID identifier for this run.\n triggered_by: UUID of user who triggered\ \ the run, or None.\n model_name: Name of the NER model used.\n model_params:\ \ Parameters for the NER model.\n created_at: When the run was created." properties: createdAt: format: date-time title: Createdat type: string modelName: title: Modelname type: string modelParams: anyOf: - $ref: '#/components/schemas/CluenerParams' - $ref: '#/components/schemas/DoNothingParams' title: Modelparams novelId: format: uuid title: Novelid type: string runId: format: uuid title: Runid type: string triggeredBy: format: uuid title: Triggeredby type: string required: - runId - novelId - triggeredBy - modelName - modelParams - createdAt title: AutoLabelRun type: object Body_create_chapters_by_upload_chapters_upload_post: properties: file: contentMediaType: application/octet-stream title: File type: string novelId: format: uuid title: Novelid type: string version: const: v1 title: Version type: string required: - novelId - version - file title: Body_create_chapters_by_upload_chapters_upload_post type: object Body_login_for_access_token_token_post: properties: client_id: anyOf: - type: string - type: 'null' title: Client Id client_secret: anyOf: - type: string - type: 'null' format: password title: Client Secret grant_type: anyOf: - pattern: ^password$ type: string - type: 'null' title: Grant Type password: format: password title: Password type: string scope: default: '' title: Scope type: string username: title: Username type: string required: - username - password title: Body_login_for_access_token_token_post type: object BoolData: additionalProperties: false properties: kind: const: value default: value title: Kind type: string type: const: bool default: bool title: Type type: string value: $ref: '#/components/schemas/BooleanValue' required: - value title: BoolData type: object BoolField: additionalProperties: false properties: kind: const: field default: field title: Kind type: string mutable: default: false title: Mutable type: boolean type: const: bool default: bool title: Type type: string title: BoolField type: object BooleanValue: type: boolean CacheEntry: properties: error: anyOf: - $ref: '#/components/schemas/CacheError' - type: 'null' response: anyOf: - additionalProperties: true type: object - type: 'null' title: Response status: enum: - pending - success - failure title: Status type: string status_code: anyOf: - type: integer - type: 'null' title: Status Code required: - status - status_code - response - error title: CacheEntry type: object CacheError: properties: cacheConflict: title: Cacheconflict type: boolean detail: title: Detail type: string required: - detail - cacheConflict title: CacheError type: object Chapter: description: "Pydantic schema for chapter metadata. Represents a single \"chapter\"\ \ entry, which groups all its revisions.\n\nAttributes:\n chapter_id: UUID\ \ primary key identifier.\n chapter_num: The chapter number.\n novel_id:\ \ UUID foreign key to the novel this chapter belongs to." properties: chapterId: format: uuid title: Chapterid type: string chapterIsPublic: title: Chapterispublic type: boolean chapterNum: title: Chapternum type: integer chapterTitle: title: Chaptertitle type: string novelId: format: uuid title: Novelid type: string required: - chapterId - chapterNum - chapterTitle - chapterIsPublic - novelId title: Chapter type: object ChapterContent: description: "Pydantic schema for the text content of a chapter.\n\nAttributes:\n\ \ chapter_content_text: The full text content of the chapter.\n chapter_content_version:\ \ The version number of the text content, used for optimistic concurrency\ \ control when updating text.\n chapter_content_id: The UUID of the text\ \ content, used for optimistic concurrency control when updating text." properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterContentText: title: Chaptercontenttext type: string chapterContentVersion: title: Chaptercontentversion type: integer required: - chapterContentText - chapterContentVersion - chapterContentId title: ChapterContent type: object ChapterContentMeta: description: "Metadata for a ChapterContent.\n\nAttributes:\n chapter_content_version:\ \ The version number of the text content, used for optimistic concurrency\ \ control when updating text.\n chapter_content_id: The UUID of the text\ \ content, used for optimistic concurrency control when updating text." properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterContentVersion: title: Chaptercontentversion type: integer required: - chapterContentVersion - chapterContentId title: ChapterContentMeta type: object ChapterContentTermSearch: description: "Pydantic schema for a term search within one chapter content version.\n\ \nAttributes:\n chapter_content_id: The UUID of the content version that\ \ was searched.\n occurrences: Every occurrence of the term in that content,\ \ in order." properties: chapterContentId: format: uuid title: Chaptercontentid type: string occurrences: items: $ref: '#/components/schemas/TermOccurrencePreview' title: Occurrences type: array required: - chapterContentId - occurrences title: ChapterContentTermSearch type: object ChapterData: description: "Pydantic schema for aggregating a ChapterContent and a Chapter\ \ together.\n\nAttributes:\n metadata: The metadata of the chapter, such\ \ as title and whether it's primary.\n content: The text content of the\ \ chapter." properties: content: $ref: '#/components/schemas/ChapterContent' metadata: $ref: '#/components/schemas/Chapter' required: - metadata - content title: ChapterData type: object ChapterTermMatches: description: "Pydantic schema for how often a searched term occurs in one chapter.\n\ \nAttributes:\n chapter_id: The UUID of the chapter containing the term.\n\ \ chapter_num: The chapter's number in the novel.\n chapter_content_id:\ \ The UUID of the content version that was counted; search it for offsets\ \ and previews.\n match_count: The number of non-overlapping occurrences\ \ in that content." properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterId: format: uuid title: Chapterid type: string chapterNum: title: Chapternum type: integer matchCount: title: Matchcount type: integer required: - chapterId - chapterNum - chapterContentId - matchCount title: ChapterTermMatches type: object CluenerParams: description: "Pydantic schema for a Cluener model.\n\nAttributes:\n chunk_size:\ \ Integer between 1 and 512. Determines max size of chunks passed to NER model.\ \ Has default value 500.\n separators: Dictionary of the form `char : SepPriority`.\ \ The predict algorithm will prioritize chunks ending in higher priority separators.\ \ Has default value (read the code to see what it is.)\n force_chunk: If\ \ no separators found in some interval, force the chunker to chunk mid-sentence.\ \ Has default value False.\n\nNotes:\n To validate this model without injecting\ \ default values, call `CluenerModelParams.model_validate(..., context={'skip_default_values'\ \ : True})`." properties: chunkSize: default: 500 exclusiveMinimum: 0.0 maximum: 512.0 title: Chunksize type: integer forceChunk: default: false title: Forcechunk type: boolean modelName: const: cluener default: cluener title: Modelname type: string separators: additionalProperties: $ref: '#/components/schemas/SepPriority' default: ? ' ' : 1 '!': 2 ',': 3 .: 2 ':': 3 ;: 3 '?': 2 "\u3002": 2 "\uFF01": 2 "\uFF0C": 3 "\uFF1A": 3 "\uFF1B": 3 "\uFF1F": 2 title: Separators type: object title: CluenerParams type: object ConventionCategory: description: Which translation step a convention guides. enum: - naming - style title: ConventionCategory type: string ConventionRead: properties: category: $ref: '#/components/schemas/ConventionCategory' conventionId: format: uuid title: Conventionid type: string createdAt: format: date-time title: Createdat type: string creatorType: $ref: '#/components/schemas/Creator' memoryGroupId: format: uuid title: Memorygroupid type: string rationale: anyOf: - type: string - type: 'null' title: Rationale reviewStatus: $ref: '#/components/schemas/ReviewStatus' rule: title: Rule type: string title: title: Title type: string updatedAt: format: date-time title: Updatedat type: string required: - conventionId - memoryGroupId - category - title - rule - rationale - reviewStatus - creatorType - createdAt - updatedAt title: ConventionRead type: object ConventionsInput: additionalProperties: false properties: memoryGroupId: format: uuid title: Memorygroupid type: string type: const: conventions title: Type type: string required: - type - memoryGroupId title: ConventionsInput type: object CreateAutoLabels: description: "Pydantic schema for creating a new autolabel run.\n\nAttributes:\n\ \ novel_id: UUID of novel to create auto labels for.\n params: Parameters\ \ for the NER model. Discriminated by model_name attribute.\n chapter_ids:\ \ Optional. Restrict to specific chapter UUIDs.\n start: Optional. Restrict\ \ to chapters with number >= start.\n end: Optional. Restrict to chapters\ \ with number < end.\n is_public: Optional. Restrict to chapters with this\ \ specific public flag." properties: chapterIds: anyOf: - items: format: uuid type: string type: array - type: 'null' title: Chapterids end: anyOf: - type: integer - type: 'null' title: End isPublic: anyOf: - type: boolean - type: 'null' title: Ispublic novelId: format: uuid title: Novelid type: string params: discriminator: mapping: cluener: '#/components/schemas/CluenerParams' do_nothing: '#/components/schemas/DoNothingParams' propertyName: modelName oneOf: - $ref: '#/components/schemas/CluenerParams' - $ref: '#/components/schemas/DoNothingParams' title: Params start: anyOf: - type: integer - type: 'null' title: Start required: - novelId - params title: CreateAutoLabels type: object CreateAutoLabelsResponse: description: "Pydantic schema for the response after creating autolabels.\n\n\ Attributes:\n run: The autolabel run that was created.\n autolabels:\ \ The list of autolabel entries created in this run." properties: autolabels: items: $ref: '#/components/schemas/AutoLabelMetaWithCid' title: Autolabels type: array run: $ref: '#/components/schemas/AutoLabelRun' required: - run - autolabels title: CreateAutoLabelsResponse type: object CreateChapter: description: "Pydantic schema to validate data for creating a new chapter. The\ \ novel_id is expected to be passed via the URL path.\n\nAttributes:\n \ \ chapter_num: The chapter number to create.\n chapter_title: Title of\ \ the chapter. Defaults to empty string.\n chapter_is_public: Whether the\ \ chapter is publicly visible. Defaults to False." properties: chapterIsPublic: default: false title: Chapterispublic type: boolean chapterNum: title: Chapternum type: integer chapterTitle: default: '' title: Chaptertitle type: string required: - chapterNum title: CreateChapter type: object CreateFunctionDefinitionRequest: additionalProperties: false properties: functionDefinition: additionalProperties: true title: Functiondefinition type: object functionName: maxLength: 100 minLength: 1 title: Functionname type: string namespace: maxLength: 100 minLength: 1 title: Namespace type: string required: - namespace - functionName - functionDefinition title: CreateFunctionDefinitionRequest type: object CreateGlossaryMemory: properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterId: format: uuid title: Chapterid type: string mark: anyOf: - minLength: 1 type: string - type: 'null' title: Mark memoryContent: minLength: 1 title: Memorycontent type: string memoryType: $ref: '#/components/schemas/MemoryType' scope: anyOf: - $ref: '#/components/schemas/Scope' - type: 'null' termIds: items: format: uuid type: string minItems: 1 title: Termids type: array required: - chapterId - chapterContentId - memoryType - memoryContent - termIds title: CreateGlossaryMemory type: object CreateGlossaryTerm: properties: term: maxLength: 100 minLength: 1 title: Term type: string termKind: anyOf: - $ref: '#/components/schemas/TermKind' - type: 'null' required: - term title: CreateGlossaryTerm type: object CreateLabelData: description: "Pydantic schema for validating create requests for label data.\n\ \nAttributes:\n chapter_content_id: UUID of chapter content being labelled." properties: chapterContentId: format: uuid title: Chaptercontentid type: string required: - chapterContentId title: CreateLabelData type: object CreateLabelDataByAutoLabel: description: "Pydantic schema to specifiy a set of AutoLabels to be moved to\ \ LabelDatas.\n\nAttributes:\n run_id: UUID of the autolabel run whose\ \ results should be promoted.\n chapter_ids: Optional filter on what chapters\ \ to include.\n start: Optional filter on the least chapter number to include.\n\ \ end: Optional filter on the greatest chapter number to include." properties: chapterIds: anyOf: - items: format: uuid type: string type: array - type: 'null' title: Chapterids end: anyOf: - type: integer - type: 'null' title: End runId: format: uuid title: Runid type: string start: anyOf: - type: integer - type: 'null' title: Start required: - runId title: CreateLabelDataByAutoLabel type: object CreateLabelGroup: description: "Pydantic schema for validating forms for creating a label group.\n\ \nAttributes:\n label_group_name: Name of label group to create.\n novel_id:\ \ UUID of novel this label group belongs to." properties: labelGroupName: maxLength: 31 title: Labelgroupname type: string novelId: format: uuid title: Novelid type: string required: - labelGroupName - novelId title: CreateLabelGroup type: object CreateMemoryGroup: properties: memoryGroupName: maxLength: 100 minLength: 1 title: Memorygroupname type: string memoryLanguage: maxLength: 2 minLength: 2 title: Memorylanguage type: string novelId: format: uuid title: Novelid type: string required: - memoryGroupName - novelId - memoryLanguage title: CreateMemoryGroup type: object CreateMemoryJob: properties: endChapterNum: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Endchapternum memoryGroupId: format: uuid title: Memorygroupid type: string params: $ref: '#/components/schemas/JobParams' startChapterNum: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Startchapternum required: - memoryGroupId - params title: CreateMemoryJob type: object CreateNovel: description: "Pydantic schema to validate forms for creating a novel.\n\nAttributes:\n\ \ novel_title: Novel title to create.\n novel_description: Description\ \ of novel we are creating.\n novel_author: Author of novel we are creating.\n\ \ novel_visibility: Visibility level of novel we are creating.\n novel_type:\ \ Type of novel we are creating.\n language_code: String code key to language\ \ of novel we are creating.\n source_work_id: Optional source work to attach\ \ to. If None, a new source work is auto-created." properties: languageCode: title: Languagecode type: string novelAuthor: anyOf: - type: string - type: 'null' title: Novelauthor novelDescription: anyOf: - type: string - type: 'null' title: Noveldescription novelTitle: title: Noveltitle type: string novelType: $ref: '#/components/schemas/NovelType' novelVisibility: $ref: '#/components/schemas/Visibility' sourceWorkId: anyOf: - format: uuid type: string - type: 'null' title: Sourceworkid required: - novelTitle - novelVisibility - novelType - languageCode title: CreateNovel type: object CreateSourceWork: description: "Pydantic schema to validate forms for creating a source work.\n\ \nAttributes:\n source_work_title: Title of the source work to create.\n\ \ source_work_description: Optional description." properties: sourceWorkDescription: anyOf: - type: string - type: 'null' title: Sourceworkdescription sourceWorkTitle: title: Sourceworktitle type: string required: - sourceWorkTitle title: CreateSourceWork type: object CreateUser: description: "Pydantic schema to validate data required to create a user.\n\n\ Attributes:\n user_name: Username of user being created.\n user_password:\ \ Unhashed password of user being create.\n user_type: UserType type of\ \ user to be created.\nNotes:" properties: userName: title: Username type: string userPassword: title: Userpassword type: string userType: $ref: '#/components/schemas/UserType' required: - userName - userPassword - userType title: CreateUser type: object CreatedLabelPromotion: properties: itemCount: title: Itemcount type: integer promotionId: format: uuid title: Promotionid type: string required: - promotionId - itemCount title: CreatedLabelPromotion type: object Creator: enum: - user - workflow - agent title: Creator type: string DataObj: additionalProperties: false properties: fields: additionalProperties: $ref: '#/components/schemas/DataType' maxProperties: 256 propertyNames: $ref: '#/components/schemas/FieldName' title: Fields type: object kind: const: object default: object title: Kind type: string title: DataObj type: object DataType: discriminator: mapping: bool: '#/components/schemas/BoolData' float: '#/components/schemas/FloatData' int: '#/components/schemas/IntData' labelRef: '#/components/schemas/LabelRefData' string: '#/components/schemas/StringData' textSpan: '#/components/schemas/TextSpanData' propertyName: type oneOf: - $ref: '#/components/schemas/StringData' - $ref: '#/components/schemas/IntData' - $ref: '#/components/schemas/FloatData' - $ref: '#/components/schemas/BoolData' - $ref: '#/components/schemas/TextSpanData' - $ref: '#/components/schemas/LabelRefData' DeleteLabelOp: description: "Pydantic schema for a label delete operation. Deletes the label\ \ with label_id.\n\nAttributes:\n op: The string literal 'delete'.\n \ \ label_id: ID of the label to delete." properties: labelId: format: uuid title: Labelid type: string op: const: delete title: Op type: string required: - op - labelId title: DeleteLabelOp type: object DeleteUserStatus: description: "Pydantic schema to return status after deleting a user\n\nAttributes:\n\ \ status: One of 'success', 'fail', 'verify'.\n detail: String denoting\ \ details of operation." properties: detail: anyOf: - type: string - type: 'null' title: Detail status: enum: - success - fail - verify title: Status type: string required: - status title: DeleteUserStatus type: object DetailHTTPErrorResponse: description: "Generic error payload for HTTPException responses that only return\ \ a detail string.\n\nAttributes:\n detail: Human-readable description\ \ of the error." properties: detail: title: Detail type: string required: - detail title: DetailHTTPErrorResponse type: object DoNothingParams: description: "Pydantic schema for a DoNothing model.\n\nAttributes:\n model_name:\ \ Literal \"do_nothing\"." properties: modelName: const: do_nothing default: do_nothing title: Modelname type: string title: DoNothingParams type: object EagerEntry: properties: labelData: $ref: '#/components/schemas/LabelData' labelGroup: $ref: '#/components/schemas/LabelGroup' labels: items: $ref: '#/components/schemas/Label' title: Labels type: array required: - labelGroup - labelData - labels title: EagerEntry type: object EditChapterData: description: "Pydantic schema for the data needed to edit a chapter.\n\nAttributes:\n\ \ chapter_content: ChapterContent being edited.\n no_label_data: List\ \ of LabelGroup objects that have no label data associated with them." properties: chapterContent: $ref: '#/components/schemas/ChapterContent' eagerLabelData: items: $ref: '#/components/schemas/EagerEntry' title: Eagerlabeldata type: array lazyLabelData: items: $ref: '#/components/schemas/LazyEntry' title: Lazylabeldata type: array noLabelData: items: $ref: '#/components/schemas/LabelGroup' title: Nolabeldata type: array required: - chapterContent - noLabelData - lazyLabelData - eagerLabelData title: EditChapterData type: object ExpireMemory: properties: chapterId: format: uuid title: Chapterid type: string required: - chapterId title: ExpireMemory type: object FieldName: maxLength: 128 minLength: 1 pattern: .*\S.* type: string FloatData: additionalProperties: false properties: kind: const: value default: value title: Kind type: string type: const: float default: float title: Type type: string value: $ref: '#/components/schemas/FloatValue' required: - value title: FloatData type: object FloatField: additionalProperties: false properties: kind: const: field default: field title: Kind type: string mutable: default: false title: Mutable type: boolean type: const: float default: float title: Type type: string title: FloatField type: object FloatValue: type: number Frame: properties: groupFilters: items: $ref: '#/components/schemas/GroupFilter' maxItems: 10 title: Groupfilters type: array sortKeys: items: $ref: '#/components/schemas/SortKey' maxItems: 3 title: Sortkeys type: array workflowId: format: uuid title: Workflowid type: string required: - groupFilters - workflowId title: Frame type: object FunctionDefinitionMeta: properties: functionDefinitionId: format: uuid title: Functiondefinitionid type: string functionName: title: Functionname type: string namespace: title: Namespace type: string required: - functionDefinitionId - namespace - functionName title: FunctionDefinitionMeta type: object FunctionDefinitionResponse: properties: createdAt: format: date-time title: Createdat type: string functionDefinition: additionalProperties: true title: Functiondefinition type: object functionDefinitionId: format: uuid title: Functiondefinitionid type: string functionName: title: Functionname type: string namespace: title: Namespace type: string updatedAt: format: date-time title: Updatedat type: string required: - functionDefinitionId - namespace - functionName - functionDefinition - createdAt - updatedAt title: FunctionDefinitionResponse type: object FunctionDefinitionValidationResponse: properties: signature: $ref: '#/components/schemas/Signature' required: - signature title: FunctionDefinitionValidationResponse type: object GlossaryMemory: description: A memory together with the glossary terms it describes. properties: memory: $ref: '#/components/schemas/Memory' description: The memory that describes the glossary terms. terms: description: Glossary terms described by this memory; one memory may apply to multiple related terms. items: $ref: '#/components/schemas/GlossaryTerm' title: Terms type: array required: - memory - terms title: GlossaryMemory type: object GlossaryTerm: description: A glossary term represented as context for an agent. properties: reviewStatus: $ref: '#/components/schemas/ReviewStatus' description: Human-review state of the term. Pending terms are unverified; approved terms are verified. term: description: Term exactly as it appears in the novel's source text. title: Term type: string termId: description: Stable identifier for the glossary term. format: uuid title: Termid type: string termKind: anyOf: - $ref: '#/components/schemas/TermKind' - type: 'null' description: Semantic kind of the glossary term, or null when it has not been categorized. required: - termId - term - termKind - reviewStatus title: GlossaryTerm type: object GlossaryTermSummary: description: A glossary term together with its associated-memory count in the requested scope. properties: associatedMemoryCount: minimum: 0.0 title: Associatedmemorycount type: integer reviewStatus: $ref: '#/components/schemas/ReviewStatus' description: Human-review state of the term. Pending terms are unverified; approved terms are verified. term: description: Term exactly as it appears in the novel's source text. title: Term type: string termId: description: Stable identifier for the glossary term. format: uuid title: Termid type: string termKind: anyOf: - $ref: '#/components/schemas/TermKind' - type: 'null' description: Semantic kind of the glossary term, or null when it has not been categorized. required: - termId - term - termKind - reviewStatus - associatedMemoryCount title: GlossaryTermSummary type: object GroupData: discriminator: mapping: bool: '#/components/schemas/BoolData' int: '#/components/schemas/IntData' string: '#/components/schemas/StringData' propertyName: type oneOf: - $ref: '#/components/schemas/StringData' - $ref: '#/components/schemas/IntData' - $ref: '#/components/schemas/BoolData' GroupFilter: properties: groupingId: format: uuid title: Groupingid type: string values: items: $ref: '#/components/schemas/GroupData' maxItems: 100 title: Values type: array required: - groupingId - values title: GroupFilter type: object GroupOperationAccepted: properties: grouping: $ref: '#/components/schemas/GroupingResponse' jobId: format: uuid title: Jobid type: string required: - jobId - grouping title: GroupOperationAccepted type: object GroupValueCount: properties: count: title: Count type: integer value: $ref: '#/components/schemas/GroupData' required: - value - count title: GroupValueCount type: object GroupingResponse: properties: assignmentCount: title: Assignmentcount type: integer createdAt: format: date-time title: Createdat type: string functionDefinition: $ref: '#/components/schemas/FunctionDefinitionMeta' groupingId: format: uuid title: Groupingid type: string groupingMessage: anyOf: - type: string - type: 'null' title: Groupingmessage groupingStatus: $ref: '#/components/schemas/GroupingStatus' jobId: anyOf: - format: uuid type: string - type: 'null' title: Jobid outputType: enum: - string - int - bool title: Outputtype type: string updatedAt: format: date-time title: Updatedat type: string workflowId: format: uuid title: Workflowid type: string required: - groupingId - workflowId - functionDefinition - outputType - jobId - groupingStatus - groupingMessage - assignmentCount - createdAt - updatedAt title: GroupingResponse type: object GroupingStatus: enum: - new - pending - processing - complete - failed title: GroupingStatus type: string GroupingSummary: properties: createdAt: format: date-time title: Createdat type: string functionDefinitionId: format: uuid title: Functiondefinitionid type: string groupingId: format: uuid title: Groupingid type: string groupingMessage: anyOf: - type: string - type: 'null' title: Groupingmessage groupingStatus: $ref: '#/components/schemas/GroupingStatus' jobId: anyOf: - format: uuid type: string - type: 'null' title: Jobid updatedAt: format: date-time title: Updatedat type: string workflowId: format: uuid title: Workflowid type: string required: - groupingId - workflowId - functionDefinitionId - jobId - groupingStatus - groupingMessage - createdAt - updatedAt title: GroupingSummary type: object HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' title: Detail type: array title: HTTPValidationError type: object InstanceQuery: properties: cursor: anyOf: - format: uuid type: string - type: 'null' description: Cursor for pagination. If provided, must be a valid instance id. The query will return results after this cursor according to the sort keys. title: Cursor frame: $ref: '#/components/schemas/Frame' limit: default: 50 maximum: 100.0 minimum: 1.0 title: Limit type: integer required: - frame title: InstanceQuery type: object InstanceQueryResult: properties: groupValues: additionalProperties: $ref: '#/components/schemas/GroupData' propertyNames: format: uuid title: Groupvalues type: object instance: $ref: '#/components/schemas/InstanceResponse' required: - instance - groupValues title: InstanceQueryResult type: object InstanceResponse: properties: instanceId: format: uuid title: Instanceid type: string value: $ref: '#/components/schemas/DataObj' workflowId: format: uuid title: Workflowid type: string required: - instanceId - workflowId - value title: InstanceResponse type: object IntData: additionalProperties: false properties: kind: const: value default: value title: Kind type: string type: const: int default: int title: Type type: string value: $ref: '#/components/schemas/IntegerValue' required: - value title: IntData type: object IntField: additionalProperties: false properties: kind: const: field default: field title: Kind type: string mutable: default: false title: Mutable type: boolean type: const: int default: int title: Type type: string title: IntField type: object IntegerValue: type: integer JobParams: discriminator: mapping: '1': '#/components/schemas/JobParamsV1' '2': '#/components/schemas/JobParamsV2' '3': '#/components/schemas/JobParamsV3' propertyName: version oneOf: - $ref: '#/components/schemas/JobParamsV1' - $ref: '#/components/schemas/JobParamsV2' - $ref: '#/components/schemas/JobParamsV3' JobParamsV1: additionalProperties: false properties: modelName: $ref: '#/components/schemas/ModelName' toolsets: additionalProperties: additionalProperties: true type: object title: Toolsets type: object version: const: 1 default: 1 title: Version type: integer required: - modelName - toolsets title: JobParamsV1 type: object JobParamsV2: additionalProperties: false properties: recordMemories: anyOf: - $ref: '#/components/schemas/RecordMemoriesConfig' - type: 'null' summarizeConventions: anyOf: - $ref: '#/components/schemas/SummarizeConventionsConfig' - type: 'null' translateTerms: anyOf: - $ref: '#/components/schemas/TranslateTermsConfig' - type: 'null' version: const: 2 default: 2 title: Version type: integer title: JobParamsV2 type: object JobParamsV3: additionalProperties: false properties: stages: items: $ref: '#/components/schemas/StageConfig' minItems: 1 title: Stages type: array version: const: 3 default: 3 title: Version type: integer required: - stages title: JobParamsV3 type: object JobStatus: enum: - pending - processing - completed - failed title: JobStatus type: string Label: description: 'Pydantic schema for a label that belongs to a LabelData. Extends LabelBase with a label_data_id foreign key and label_id pkey.' properties: labelDataId: format: uuid title: Labeldataid type: string labelDirty: title: Labeldirty type: boolean labelEnd: minimum: 0.0 title: Labelend type: integer labelEntityGroup: anyOf: - maxLength: 64 type: string - type: 'null' title: Labelentitygroup labelId: format: uuid title: Labelid type: string labelScore: maximum: 1.0 minimum: 0.0 title: Labelscore type: number labelStart: minimum: 0.0 title: Labelstart type: integer labelWord: maxLength: 128 title: Labelword type: string required: - labelEntityGroup - labelScore - labelWord - labelStart - labelEnd - labelDirty - labelDataId - labelId title: Label type: object LabelBase: description: "Pydantic schema for a single label without a parent LabelData\ \ reference.\nUsed by autolabels and other contexts where labels exist independently\ \ of a LabelData.\n\nAttributes:\n label_entity_group: Some arbitrary string\ \ denoting the entity group this label belongs to (e.g. PERSON, LOCATION,\ \ etc.).\n label_score: Some float corresponding to how likely a label\ \ is to be correct. Used by label autogeneration modules (TBD).\n label_word:\ \ Word that this label is labeling.\n label_start: Start position of this\ \ label in text.\n label_end: End position of this label in text.\n \ \ label_dirty: Use TBD, most likely will be for score calculations in LabelData\ \ aggregate operations.\n\nNote:\n label_start must be strictly less than\ \ label_end. Otherwise a ValueError will occur.\n label_word must have\ \ length label_end - label_start. Otherwise a ValueError will occur." properties: labelDirty: title: Labeldirty type: boolean labelEnd: minimum: 0.0 title: Labelend type: integer labelEntityGroup: anyOf: - maxLength: 64 type: string - type: 'null' title: Labelentitygroup labelScore: maximum: 1.0 minimum: 0.0 title: Labelscore type: number labelStart: minimum: 0.0 title: Labelstart type: integer labelWord: maxLength: 128 title: Labelword type: string required: - labelEntityGroup - labelScore - labelWord - labelStart - labelEnd - labelDirty title: LabelBase type: object LabelContributor: description: "Pydantic schema for a label contributor, which can be either a\ \ user or an autolabel model.\n\nAttributes:\n label_contributor_role:\ \ Role of the contributor, either a user or an autolabel model.\n label_group_id:\ \ UUID of label group this contributor belongs to.\n user_id: UUID of user" properties: labelContributorRole: $ref: '#/components/schemas/LabelRole' labelGroupId: format: uuid title: Labelgroupid type: string userId: format: uuid title: Userid type: string required: - labelContributorRole - labelGroupId - userId title: LabelContributor type: object LabelData: description: "Pydantic schema for a list of labels in some text.\n\nAttributes:\n\ \ label_data_id: UUID identifier for this LabelData.\n label_group_id:\ \ UUID of label group this LabelData belongs to.\n chapter_content_id:\ \ UUID of chapter content this LabelData is labelling." properties: chapterContentId: format: uuid title: Chaptercontentid type: string labelDataId: format: uuid title: Labeldataid type: string labelGroupId: format: uuid title: Labelgroupid type: string required: - labelDataId - labelGroupId - chapterContentId title: LabelData type: object LabelGroup: description: "Pydantic schema for a label group.\n\nAttributes:\n label_group_id:\ \ UUID identifier for this label group.\n label_group_name: Name of this\ \ label group.\n novel_id: UUID of novel this label group belongs to." properties: labelGroupId: format: uuid title: Labelgroupid type: string labelGroupName: maxLength: 31 title: Labelgroupname type: string novelId: format: uuid title: Novelid type: string required: - labelGroupId - labelGroupName - novelId title: LabelGroup type: object LabelGroupWithRole: description: "Pydantic schema for a label group with a user's role in that label\ \ group.\n\nAttributes:\n label_group: LabelGroup object.\n role: Role\ \ of the user in this label group." properties: labelGroup: $ref: '#/components/schemas/LabelGroup' role: $ref: '#/components/schemas/LabelRole' required: - labelGroup - role title: LabelGroupWithRole type: object LabelOp: discriminator: mapping: add: '#/components/schemas/AddLabelOp' delete: '#/components/schemas/DeleteLabelOp' update: '#/components/schemas/UpdateLabelOp' propertyName: op oneOf: - $ref: '#/components/schemas/AddLabelOp' - $ref: '#/components/schemas/DeleteLabelOp' - $ref: '#/components/schemas/UpdateLabelOp' LabelPromotionCounts: properties: done: title: Done type: integer failed: title: Failed type: integer pending: title: Pending type: integer total: title: Total type: integer required: - total - done - failed - pending title: LabelPromotionCounts type: object LabelPromotionFailure: properties: chapterId: format: uuid title: Chapterid type: string chapterNum: title: Chapternum type: integer message: title: Message type: string required: - chapterId - chapterNum - message title: LabelPromotionFailure type: object LabelPromotionJob: properties: counts: $ref: '#/components/schemas/LabelPromotionCounts' createdAt: format: date-time title: Createdat type: string labelGroupId: format: uuid title: Labelgroupid type: string message: anyOf: - type: string - type: 'null' title: Message promotionId: format: uuid title: Promotionid type: string runId: format: uuid title: Runid type: string status: $ref: '#/components/schemas/AutoLabelProgress' updatedAt: format: date-time title: Updatedat type: string required: - promotionId - runId - labelGroupId - status - message - counts - createdAt - updatedAt title: LabelPromotionJob type: object LabelRef: additionalProperties: false properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterId: format: uuid title: Chapterid type: string labelDataId: format: uuid title: Labeldataid type: string labelGroupId: format: uuid title: Labelgroupid type: string labelId: format: uuid title: Labelid type: string required: - chapterId - chapterContentId - labelId - labelDataId - labelGroupId title: LabelRef type: object LabelRefData: additionalProperties: false properties: kind: const: value default: value title: Kind type: string type: const: labelRef default: labelRef title: Type type: string value: $ref: '#/components/schemas/LabelRef' required: - value title: LabelRefData type: object LabelRefField: additionalProperties: false properties: kind: const: field default: field title: Kind type: string mutable: const: false default: false title: Mutable type: boolean type: const: labelRef default: labelRef title: Type type: string title: LabelRefField type: object LabelRole: enum: - owner - viewer - editor title: LabelRole type: string Language: description: "Pydantic schema for language.\n\nAttributes:\n language_code:\ \ String code key to language.\n language_name: String name of language." properties: languageCode: title: Languagecode type: string languageName: title: Languagename type: string required: - languageCode - languageName title: Language type: object LazyEntry: properties: labelData: $ref: '#/components/schemas/LabelData' labelGroup: $ref: '#/components/schemas/LabelGroup' required: - labelGroup - labelData title: LazyEntry type: object LinkKind: enum: - linked - broken - incompatible - absent type: string MDataType: discriminator: mapping: bool: '#/components/schemas/BoolData' float: '#/components/schemas/FloatData' int: '#/components/schemas/IntData' string: '#/components/schemas/StringData' propertyName: type oneOf: - $ref: '#/components/schemas/StringData' - $ref: '#/components/schemas/IntData' - $ref: '#/components/schemas/FloatData' - $ref: '#/components/schemas/BoolData' MemoriesInput: additionalProperties: false properties: excludeCurrentChapter: default: true title: Excludecurrentchapter type: boolean memoryGroupId: format: uuid title: Memorygroupid type: string memoryTypes: anyOf: - items: $ref: '#/components/schemas/MemoryType' type: array - type: 'null' title: Memorytypes pluginNames: anyOf: - items: $ref: '#/components/schemas/PluginName' type: array - type: 'null' title: Pluginnames type: const: memories title: Type type: string required: - type - memoryGroupId title: MemoriesInput type: object Memory: description: Memory schema properties: creatorType: $ref: '#/components/schemas/Creator' description: 'Type of entity that created the memory: a human, an AI agent, or a workflow.' mark: anyOf: - type: string - type: 'null' description: Optional application-defined category used to narrow memory retrieval. title: Mark memoryContent: description: The contextual information that should inform glossary maintenance and novel continuity. title: Memorycontent type: string memoryEndNum: anyOf: - type: integer - type: 'null' description: Exclusive ending chapter number stored by the database, or null when the memory does not expire. title: Memoryendnum memoryId: description: Stable identifier to use when superseding, expiring, or otherwise referring to this memory. format: uuid title: Memoryid type: string memoryReviewStatus: $ref: '#/components/schemas/ReviewStatus' description: Human-review state of the memory. Pending memories are unverified; approved memories are verified. memoryStartNum: description: First chapter number for which this memory is applicable; larger values indicate newer information. title: Memorystartnum type: integer memoryType: $ref: '#/components/schemas/MemoryType' description: 'Kind of information stored: a fact, event, definition, or relation.' pluginName: $ref: '#/components/schemas/PluginName' description: Name of the plugin that owns the memory. supersedesMemoryId: anyOf: - format: uuid type: string - type: 'null' description: Identifier of the memory that this memory supersedes, or null when this memory is not a superseding memory. title: Supersedesmemoryid required: - memoryId - memoryType - mark - memoryContent - memoryStartNum - memoryReviewStatus - memoryEndNum - supersedesMemoryId - creatorType - pluginName title: Memory type: object MemoryAgentConfig: properties: models: items: $ref: '#/components/schemas/MemoryAgentModelOption' title: Models type: array toolsets: items: $ref: '#/components/schemas/MemoryAgentToolsetOption' title: Toolsets type: array required: - models - toolsets title: MemoryAgentConfig type: object MemoryAgentModelOption: properties: description: title: Description type: string label: title: Label type: string name: $ref: '#/components/schemas/ModelName' required: - name - label - description title: MemoryAgentModelOption type: object MemoryAgentToolsetOption: properties: configSchema: additionalProperties: true title: Configschema type: object defaultEnabled: title: Defaultenabled type: boolean description: title: Description type: string excludes: items: type: string title: Excludes type: array kind: $ref: '#/components/schemas/ToolsetKind' label: title: Label type: string name: title: Name type: string requires: items: type: string title: Requires type: array required: - name - label - description - kind - defaultEnabled - configSchema - requires - excludes title: MemoryAgentToolsetOption type: object MemoryChapterTask: properties: attemptCount: title: Attemptcount type: integer chapterId: format: uuid title: Chapterid type: string chapterNum: title: Chapternum type: integer createdAt: format: date-time title: Createdat type: string memoryJobId: format: uuid title: Memoryjobid type: string stageNum: title: Stagenum type: integer taskStatus: $ref: '#/components/schemas/JobStatus' updatedAt: format: date-time title: Updatedat type: string required: - memoryJobId - chapterId - chapterNum - stageNum - taskStatus - attemptCount - createdAt - updatedAt title: MemoryChapterTask type: object MemoryChapterTaskCounts: properties: completed: minimum: 0.0 title: Completed type: integer failed: minimum: 0.0 title: Failed type: integer pending: minimum: 0.0 title: Pending type: integer processing: minimum: 0.0 title: Processing type: integer required: - pending - processing - completed - failed title: MemoryChapterTaskCounts type: object MemoryGroup: description: Memory group schema properties: memoryGroupId: description: Stable identifier to use when referring to this memory group. format: uuid title: Memorygroupid type: string memoryGroupName: description: Human-readable name of the memory group. title: Memorygroupname type: string memoryLanguage: description: Language in which memory content should be written. title: Memorylanguage type: string novelId: description: Identifier of the novel to which this memory group belongs. format: uuid title: Novelid type: string required: - memoryGroupId - memoryGroupName - novelId - memoryLanguage title: MemoryGroup type: object MemoryJob: properties: claimExpiresAt: anyOf: - format: date-time type: string - type: 'null' title: Claimexpiresat createdAt: format: date-time title: Createdat type: string jobParams: $ref: '#/components/schemas/JobParamsV3' memoryGroupId: format: uuid title: Memorygroupid type: string memoryJobId: format: uuid title: Memoryjobid type: string updatedAt: format: date-time title: Updatedat type: string required: - memoryJobId - memoryGroupId - jobParams - claimExpiresAt - createdAt - updatedAt title: MemoryJob type: object MemoryJobSummary: properties: isClaimed: title: Isclaimed type: boolean job: $ref: '#/components/schemas/MemoryJob' taskCounts: $ref: '#/components/schemas/MemoryChapterTaskCounts' required: - job - taskCounts - isClaimed title: MemoryJobSummary type: object MemoryJobSummaryList: properties: serverTime: format: date-time title: Servertime type: string summaries: items: $ref: '#/components/schemas/MemoryJobSummary' title: Summaries type: array required: - serverTime - summaries title: MemoryJobSummaryList type: object MemoryJobSummarySnapshot: properties: serverTime: format: date-time title: Servertime type: string summary: $ref: '#/components/schemas/MemoryJobSummary' required: - serverTime - summary title: MemoryJobSummarySnapshot type: object MemoryType: description: 'The type of a memory. FACT: Memory about a specific fact or piece of information. EVENT: Memory about a specific event or occurrence. DEFINITION: Long-term memory about a specific definition or concept. RELATION: Long-term memory about a relationship between glossary terms.' enum: - fact - event - def - rel - summary title: MemoryType type: string ModelName: enum: - deepseek:deepseek-v4-flash-none - deepseek:deepseek-v4-flash-low - inception:mercury-2.5-low type: string ModifyChapterContentResponse: description: "Pydantic schema for the response after modifying chapter content.\n\ \nAttributes:\n chapter_content_version: The new version number of the\ \ text content after applying the modifications.\n chapter_content_id:\ \ The UUID of the text content that was modified.\n label_data_id_map:\ \ A mapping from label data IDs before the text modification to label data\ \ IDs after the text modification" properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterContentVersion: title: Chaptercontentversion type: integer labelDataIdMap: additionalProperties: format: uuid type: string propertyNames: format: uuid title: Labeldataidmap type: object required: - chapterContentVersion - chapterContentId - labelDataIdMap title: ModifyChapterContentResponse type: object NewBoolFieldRequest: properties: defaultValue: default: false title: Defaultvalue type: boolean type: const: bool title: Type type: string required: - type title: NewBoolFieldRequest type: object NewFieldRequest: discriminator: mapping: bool: '#/components/schemas/NewBoolFieldRequest' float: '#/components/schemas/NewFloatFieldRequest' int: '#/components/schemas/NewIntFieldRequest' string: '#/components/schemas/NewStringFieldRequest' propertyName: type oneOf: - $ref: '#/components/schemas/NewStringFieldRequest' - $ref: '#/components/schemas/NewIntFieldRequest' - $ref: '#/components/schemas/NewFloatFieldRequest' - $ref: '#/components/schemas/NewBoolFieldRequest' NewFloatFieldRequest: properties: defaultValue: default: 0.0 title: Defaultvalue type: number type: const: float title: Type type: string required: - type title: NewFloatFieldRequest type: object NewIntFieldRequest: properties: defaultValue: default: 0 title: Defaultvalue type: integer type: const: int title: Type type: string required: - type title: NewIntFieldRequest type: object NewStringFieldRequest: properties: defaultValue: default: '' title: Defaultvalue type: string type: const: string title: Type type: string required: - type title: NewStringFieldRequest type: object NonNegativeIntegerValue: minimum: 0.0 type: integer Novel: description: "Pydantic schema for novel.\n\nAttributes:\n novel_id: UUID\ \ id of novel in db.\n novel_title: String title of novel.\n novel_description:\ \ String summary or description of novel.\n novel_author: String author\ \ or description of novel.\n novel_visibility: Visibility enum of novel.\n\ \ novel_type: NovelType enum of novel.\n language_code: String code\ \ key to language of the novel.\n source_work_id: UUID foreign key to source\ \ work of the novel." properties: languageCode: title: Languagecode type: string novelAuthor: anyOf: - type: string - type: 'null' title: Novelauthor novelDescription: anyOf: - type: string - type: 'null' title: Noveldescription novelId: format: uuid title: Novelid type: string novelTitle: title: Noveltitle type: string novelType: $ref: '#/components/schemas/NovelType' novelVisibility: $ref: '#/components/schemas/Visibility' sourceWorkId: format: uuid title: Sourceworkid type: string required: - novelId - novelTitle - novelVisibility - novelType - languageCode - sourceWorkId title: Novel type: object NovelAndUsers: description: "Pydantic schema for novel and its associated users.\n\nAttributes:\n\ \ novel: The novel metadata.\n users: A list of users associated with\ \ this novel." properties: novel: $ref: '#/components/schemas/Novel' users: items: $ref: '#/components/schemas/NovelContributor' title: Users type: array required: - novel - users title: NovelAndUsers type: object NovelContributor: description: "Pydantic schema for a novel contributor.\n\nAttributes:\n user_id:\ \ UUID of the user.\n novel_id: UUID of the novel.\n contributor_role:\ \ Role of the user in the novel." properties: contributorRole: $ref: '#/components/schemas/Role' novelId: format: uuid title: Novelid type: string userId: format: uuid title: Userid type: string required: - userId - novelId - contributorRole title: NovelContributor type: object NovelTermSearch: description: "Pydantic schema for one page of a term search across a novel's\ \ chapters.\n\nAttributes:\n total_chapters: The number of chapters in\ \ the searched range that contain the term.\n total_matches: The number\ \ of occurrences across all of those chapters.\n next_offset: The offset\ \ of the next page of chapters, or None if this is the last page.\n chapters:\ \ Matching chapters on this page, in chapter order." properties: chapters: items: $ref: '#/components/schemas/ChapterTermMatches' title: Chapters type: array nextOffset: anyOf: - type: integer - type: 'null' title: Nextoffset totalChapters: title: Totalchapters type: integer totalMatches: title: Totalmatches type: integer required: - totalChapters - totalMatches - nextOffset - chapters title: NovelTermSearch type: object NovelType: enum: - original - translation - other title: NovelType type: string OpResult: format: uuid type: string OperationStatus: description: "Pydantic model to signal return status of operation.\n\nAttributes:\n\ \ status: One of \"success\", \"fail\".\n detail: Details on operation.\n\ \nNotes:\n Unless under exceptional circumstances, should not return fail\ \ and just raise an exception." properties: detail: anyOf: - type: string - type: 'null' title: Detail status: enum: - success - fail title: Status type: string required: - status title: OperationStatus type: object OpsResult: description: "Pydantic schema for a list of label operation results.\n\nAttributes:\n\ \ results: A list of UUIDs corresponding to the results of each label operation." properties: results: items: $ref: '#/components/schemas/OpResult' title: Results type: array required: - results title: OpsResult type: object Page_ConventionRead_: properties: count: minimum: 0.0 title: Count type: integer rows: items: $ref: '#/components/schemas/ConventionRead' title: Rows type: array required: - count - rows title: Page[ConventionRead] type: object Page_GlossaryMemory_: properties: count: minimum: 0.0 title: Count type: integer rows: items: $ref: '#/components/schemas/GlossaryMemory' title: Rows type: array required: - count - rows title: Page[GlossaryMemory] type: object Page_GlossaryTermSummary_: properties: count: minimum: 0.0 title: Count type: integer rows: items: $ref: '#/components/schemas/GlossaryTermSummary' title: Rows type: array required: - count - rows title: Page[GlossaryTermSummary] type: object Page_MemoryChapterTask_: properties: count: minimum: 0.0 title: Count type: integer rows: items: $ref: '#/components/schemas/MemoryChapterTask' title: Rows type: array required: - count - rows title: Page[MemoryChapterTask] type: object Page_Memory_: properties: count: minimum: 0.0 title: Count type: integer rows: items: $ref: '#/components/schemas/Memory' title: Rows type: array required: - count - rows title: Page[Memory] type: object PluginName: enum: - glossary - continuity type: string PythonAnnotationRequest: additionalProperties: false properties: newFields: additionalProperties: $ref: '#/components/schemas/NewFieldRequest' maxProperties: 100 minProperties: 1 propertyNames: $ref: '#/components/schemas/FieldName' title: Newfields type: object workflowId: description: Completed workflow whose instances will receive the new fields. format: uuid title: Workflowid type: string required: - workflowId - newFields title: PythonAnnotationRequest type: object PythonFilterRequest: additionalProperties: false properties: functionDefinitionId: description: Saved object-to-boolean function to execute. format: uuid title: Functiondefinitionid type: string outputName: anyOf: - maxLength: 100 type: string - type: 'null' title: Outputname sourceWorkflowId: description: Completed workflow whose instances will be filtered. format: uuid title: Sourceworkflowid type: string required: - sourceWorkflowId - functionDefinitionId title: PythonFilterRequest type: object PythonGroupRequest: additionalProperties: false properties: functionDefinitionId: description: Saved object-to-scalar grouping function to execute. format: uuid title: Functiondefinitionid type: string workflowId: description: Completed workflow whose instances will be grouped. format: uuid title: Workflowid type: string required: - workflowId - functionDefinitionId title: PythonGroupRequest type: object PythonLabelSourceRequest: additionalProperties: false properties: labelGroupId: description: Label group whose current labels will seed the workflow. format: uuid title: Labelgroupid type: string outputName: anyOf: - maxLength: 100 type: string - type: 'null' title: Outputname required: - labelGroupId title: PythonLabelSourceRequest type: object PythonMapRequest: additionalProperties: false properties: functionDefinitionId: description: Saved object-to-object function to execute. format: uuid title: Functiondefinitionid type: string outputName: anyOf: - maxLength: 100 type: string - type: 'null' title: Outputname sourceWorkflowId: description: Completed workflow whose instances will be mapped. format: uuid title: Sourceworkflowid type: string required: - sourceWorkflowId - functionDefinitionId title: PythonMapRequest type: object RecordMemoriesConfig: additionalProperties: false properties: modelName: $ref: '#/components/schemas/ModelName' toolsets: additionalProperties: additionalProperties: true type: object title: Toolsets type: object required: - modelName - toolsets title: RecordMemoriesConfig type: object RecordMemoriesStageConfig: additionalProperties: false properties: modelName: $ref: '#/components/schemas/ModelName' stageName: const: record_memories default: record_memories title: Stagename type: string toolsets: additionalProperties: additionalProperties: true type: object title: Toolsets type: object required: - modelName - toolsets title: RecordMemoriesStageConfig type: object RenameWorkflowRequest: additionalProperties: false properties: workflowName: anyOf: - maxLength: 100 type: string - type: 'null' title: Workflowname required: - workflowName title: RenameWorkflowRequest type: object ReplaceGlossaryAssociations: properties: termIds: items: format: uuid type: string title: Termids type: array required: - termIds title: ReplaceGlossaryAssociations type: object RequestConflictDetail: description: "Structured detail payload used by request-key wrapped 409 responses.\n\ \nAttributes:\n detail: Human-readable description of the error.\n cache_conflict:\ \ Whether the failure was caused by a request-key cache conflict." properties: cacheConflict: title: Cacheconflict type: boolean detail: title: Detail type: string required: - detail - cacheConflict title: RequestConflictDetail type: object RequestConflictErrorResponse: description: "HTTPException response body for request-key wrapped 409 responses.\n\ \nAttributes:\n detail: Structured conflict detail." properties: detail: $ref: '#/components/schemas/RequestConflictDetail' required: - detail title: RequestConflictErrorResponse type: object ReviewStatus: enum: - pending - approved - rejected title: ReviewStatus type: string Role: enum: - owner - viewer - editor title: Role type: string SObj: discriminator: mapping: field: '#/components/schemas/SchemaField' schema: '#/components/schemas/Schema' propertyName: kind oneOf: - $ref: '#/components/schemas/Schema' - $ref: '#/components/schemas/SchemaField' SaveConvention: description: Full convention content, used for both creation and replacement. properties: category: $ref: '#/components/schemas/ConventionCategory' rationale: anyOf: - minLength: 1 type: string - type: 'null' title: Rationale rule: minLength: 1 title: Rule type: string title: maxLength: 200 minLength: 1 title: Title type: string required: - category - title - rule title: SaveConvention type: object SaveTermTranslation: properties: translation: minLength: 1 title: Translation type: string required: - translation title: SaveTermTranslation type: object Schema: additionalProperties: false properties: fields: additionalProperties: $ref: '#/components/schemas/SchemaField' maxProperties: 256 propertyNames: $ref: '#/components/schemas/FieldName' title: Fields type: object kind: const: schema default: schema title: Kind type: string title: Schema type: object SchemaField: discriminator: mapping: bool: '#/components/schemas/BoolField' float: '#/components/schemas/FloatField' int: '#/components/schemas/IntField' labelRef: '#/components/schemas/LabelRefField' string: '#/components/schemas/StringField' textSpan: '#/components/schemas/TextSpanField' propertyName: type oneOf: - $ref: '#/components/schemas/StringField' - $ref: '#/components/schemas/IntField' - $ref: '#/components/schemas/FloatField' - $ref: '#/components/schemas/BoolField' - $ref: '#/components/schemas/LabelRefField' - $ref: '#/components/schemas/TextSpanField' Scope: description: 'The scope of a memory (i.e. how long it should be retained). LOCAL: Memory is only relevant to the current chapter. RECENT: Memory is relevant to the current chapter and a few subsequent chapters. PERSIST: Memory is relevant to all chapters and should be retained indefinitely until explicitly superseded or expired.' enum: - local - recent - persist title: Scope type: string SepPriority: enum: - 1 - 2 - 3 title: SepPriority type: integer Signature: additionalProperties: false description: The input and output schemas of a function. properties: args: default: [] items: $ref: '#/components/schemas/SObj' title: Args type: array output: $ref: '#/components/schemas/SObj' required: - output title: Signature type: object SortDirection: enum: - asc - desc title: SortDirection type: string SortKey: properties: direction: $ref: '#/components/schemas/SortDirection' fieldName: $ref: '#/components/schemas/FieldName' required: - fieldName - direction title: SortKey type: object SourceWork: description: "Pydantic schema for a source work.\n\nAttributes:\n source_work_id:\ \ UUID id of source work in db.\n source_work_title: Title of the source\ \ work.\n source_work_description: Optional description of the source work." properties: sourceWorkDescription: anyOf: - type: string - type: 'null' title: Sourceworkdescription sourceWorkId: format: uuid title: Sourceworkid type: string sourceWorkTitle: title: Sourceworktitle type: string required: - sourceWorkId - sourceWorkTitle title: SourceWork type: object SourceWorkData: description: "Pydantic schema to represent a source work and all its associated\ \ novels.\n\nAttributes:\n source_work: The source work metadata.\n \ \ novels: A list of novels associated with this source work." properties: novels: items: $ref: '#/components/schemas/Novel' title: Novels type: array sourceWork: $ref: '#/components/schemas/SourceWork' required: - sourceWork - novels title: SourceWorkData type: object StageConfig: discriminator: mapping: record_memories: '#/components/schemas/RecordMemoriesStageConfig' summarize_conventions: '#/components/schemas/SummarizeConventionsStageConfig' translate_terms: '#/components/schemas/TranslateTermsStageConfig' propertyName: stageName oneOf: - $ref: '#/components/schemas/RecordMemoriesStageConfig' - $ref: '#/components/schemas/SummarizeConventionsStageConfig' - $ref: '#/components/schemas/TranslateTermsStageConfig' StreamType: enum: - chapter - memories - terms - conventions type: string StringData: additionalProperties: false properties: kind: const: value default: value title: Kind type: string type: const: string default: string title: Type type: string value: $ref: '#/components/schemas/StringValue' required: - value title: StringData type: object StringField: additionalProperties: false properties: kind: const: field default: field title: Kind type: string mutable: default: false title: Mutable type: boolean type: const: string default: string title: Type type: string title: StringField type: object StringValue: type: string SummarizeConventionsConfig: additionalProperties: false description: Propose translation conventions once per job, anchored on the range's last chapter. properties: modelName: $ref: '#/components/schemas/ModelName' sinceChapterNum: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Sincechapternum required: - modelName title: SummarizeConventionsConfig type: object SummarizeConventionsStageConfig: additionalProperties: false properties: modelName: $ref: '#/components/schemas/ModelName' sinceChapterNum: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Sincechapternum stageName: const: summarize_conventions default: summarize_conventions title: Stagename type: string required: - modelName title: SummarizeConventionsStageConfig type: object TermKind: enum: - person - place - organization - technique - item - concept - title - species - other title: TermKind type: string TermOccurrencePreview: description: "Pydantic schema for one occurrence of a searched term with surrounding\ \ text.\n\nAttributes:\n start: The start offset of the occurrence in the\ \ chapter text.\n preview: Text around the occurrence, within its line.\n\ \ preview_start: The offset of the preview in the chapter text; the occurrence\ \ begins at start - preview_start." properties: preview: title: Preview type: string previewStart: title: Previewstart type: integer start: title: Start type: integer required: - start - preview - previewStart title: TermOccurrencePreview type: object TermTranslationRead: properties: createdAt: format: date-time title: Createdat type: string creatorType: $ref: '#/components/schemas/Creator' reviewStatus: $ref: '#/components/schemas/ReviewStatus' termId: format: uuid title: Termid type: string translation: title: Translation type: string updatedAt: format: date-time title: Updatedat type: string required: - termId - translation - reviewStatus - creatorType - createdAt - updatedAt title: TermTranslationRead type: object TermsInput: additionalProperties: false properties: memoryGroupId: format: uuid title: Memorygroupid type: string type: const: terms title: Type type: string required: - type - memoryGroupId title: TermsInput type: object TextOp: description: "Pydantic schema to update text content of a chapter.\n\nAttributes:\n\ \ op: The text operation, either \"insert\" or \"delete\".\n start:\ \ The starting index in the text content where the operation should be applied.\n\ \ text: The text to insert (for insert operations) or the text to delete\ \ (for delete operations)." properties: op: enum: - insert - delete title: Op type: string start: title: Start type: integer text: title: Text type: string required: - op - start - text title: TextOp type: object TextSpan: additionalProperties: false properties: chapterContentId: format: uuid title: Chaptercontentid type: string chapterId: format: uuid title: Chapterid type: string end: $ref: '#/components/schemas/NonNegativeIntegerValue' start: $ref: '#/components/schemas/NonNegativeIntegerValue' required: - chapterId - chapterContentId - start - end title: TextSpan type: object TextSpanData: additionalProperties: false properties: kind: const: value default: value title: Kind type: string type: const: textSpan default: textSpan title: Type type: string value: $ref: '#/components/schemas/TextSpan' required: - value title: TextSpanData type: object TextSpanField: additionalProperties: false properties: kind: const: field default: field title: Kind type: string mutable: const: false default: false title: Mutable type: boolean type: const: textSpan default: textSpan title: Type type: string title: TextSpanField type: object Token: description: "Pydantic schema for a JWT\n\nAttributes:\n access_token: Payload.\n\ \ token_type: Type of token." properties: access_token: title: Access Token type: string token_type: title: Token Type type: string required: - access_token - token_type title: Token type: object ToolsetKind: enum: - memory - guidance type: string TranslateTermsConfig: additionalProperties: false properties: includeConventions: default: false title: Includeconventions type: boolean modelName: $ref: '#/components/schemas/ModelName' required: - modelName title: TranslateTermsConfig type: object TranslateTermsStageConfig: additionalProperties: false properties: includeConventions: default: false title: Includeconventions type: boolean modelName: $ref: '#/components/schemas/ModelName' stageName: const: translate_terms default: translate_terms title: Stagename type: string required: - modelName title: TranslateTermsStageConfig type: object TranslationActionCheck: properties: action: title: Action type: string warning: anyOf: - type: string - type: 'null' title: Warning required: - action - warning title: TranslationActionCheck type: object TranslationActionMetadata: properties: configSchema: additionalProperties: true title: Configschema type: object label: title: Label type: string name: title: Name type: string required: - name - label - configSchema title: TranslationActionMetadata type: object TranslationActionsRead: properties: actions: items: $ref: '#/components/schemas/TranslationActionMetadata' title: Actions type: array required: - actions title: TranslationActionsRead type: object TranslationBatchDetail: properties: batchId: format: uuid title: Batchid type: string batchNum: title: Batchnum type: integer tasks: items: $ref: '#/components/schemas/TranslationTaskRead' title: Tasks type: array required: - batchId - batchNum - tasks title: TranslationBatchDetail type: object TranslationBatchPage: properties: items: items: $ref: '#/components/schemas/TranslationBatchDetail' title: Items type: array job: $ref: '#/components/schemas/TranslationJobSummary' observedAt: format: date-time title: Observedat type: string total: title: Total type: integer required: - job - items - total - observedAt title: TranslationBatchPage type: object TranslationBatchRead: properties: batchId: format: uuid title: Batchid type: string batchNum: title: Batchnum type: integer required: - batchId - batchNum title: TranslationBatchRead type: object TranslationControlResult: properties: affectedBatchIds: items: format: uuid type: string title: Affectedbatchids type: array dispatchFailedTaskIds: items: format: uuid type: string title: Dispatchfailedtaskids type: array dispatchedTaskIds: items: format: uuid type: string title: Dispatchedtaskids type: array title: TranslationControlResult type: object TranslationInput: discriminator: mapping: conventions: '#/components/schemas/ConventionsInput' memories: '#/components/schemas/MemoriesInput' terms: '#/components/schemas/TermsInput' propertyName: type oneOf: - $ref: '#/components/schemas/MemoriesInput' - $ref: '#/components/schemas/TermsInput' - $ref: '#/components/schemas/ConventionsInput' TranslationInputPort: properties: drops: title: Drops type: boolean link: $ref: '#/components/schemas/LinkKind' optional: title: Optional type: boolean source: anyOf: - type: integer - type: 'null' title: Source sourceType: anyOf: - $ref: '#/components/schemas/StreamType' - type: 'null' stream: title: Stream type: string type: $ref: '#/components/schemas/StreamType' required: - stream - type - optional - drops - link - source - sourceType title: TranslationInputPort type: object TranslationJobConfig: properties: batchSize: exclusiveMinimum: 0.0 title: Batchsize type: integer endChapterNum: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Endchapternum startChapterNum: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Startchapternum required: - batchSize title: TranslationJobConfig type: object TranslationJobCreateRequest: description: Public envelope; action-specific validation happens before job creation. properties: config: $ref: '#/components/schemas/TranslationJobConfig' inputs: additionalProperties: $ref: '#/components/schemas/TranslationInput' title: Inputs type: object novelId: format: uuid title: Novelid type: string stages: items: $ref: '#/components/schemas/TranslationStageRequest' maxItems: 5 minItems: 1 title: Stages type: array required: - novelId - config - stages title: TranslationJobCreateRequest type: object TranslationJobCreated: properties: jobId: format: uuid title: Jobid type: string required: - jobId title: TranslationJobCreated type: object TranslationJobDraft: properties: config: $ref: '#/components/schemas/TranslationJobConfig' inputs: additionalProperties: $ref: '#/components/schemas/TranslationInput' title: Inputs type: object novelId: format: uuid title: Novelid type: string stages: items: $ref: '#/components/schemas/TranslationStageRequest' maxItems: 5 title: Stages type: array required: - novelId - config title: TranslationJobDraft type: object TranslationJobPage: properties: items: items: $ref: '#/components/schemas/TranslationJobSummary' title: Items type: array total: title: Total type: integer required: - items - total title: TranslationJobPage type: object TranslationJobRead: properties: batches: items: $ref: '#/components/schemas/TranslationBatchRead' title: Batches type: array config: additionalProperties: true title: Config type: object jobId: format: uuid title: Jobid type: string novelId: format: uuid title: Novelid type: string stages: items: $ref: '#/components/schemas/TranslationStageRead' title: Stages type: array tasks: items: $ref: '#/components/schemas/TranslationTaskRead' title: Tasks type: array required: - jobId - novelId - config - stages - batches - tasks title: TranslationJobRead type: object TranslationJobSummary: properties: config: additionalProperties: true title: Config type: object jobId: format: uuid title: Jobid type: string progress: $ref: '#/components/schemas/TranslationProgress' stages: items: $ref: '#/components/schemas/TranslationStageRead' title: Stages type: array required: - jobId - config - stages - progress title: TranslationJobSummary type: object TranslationLaneEnd: properties: source: title: Source type: integer stream: title: Stream type: string type: $ref: '#/components/schemas/StreamType' required: - stream - type - source title: TranslationLaneEnd type: object TranslationOutputPort: properties: stream: title: Stream type: string type: $ref: '#/components/schemas/StreamType' required: - stream - type title: TranslationOutputPort type: object TranslationPipelineCheck: properties: addable: items: $ref: '#/components/schemas/TranslationActionCheck' title: Addable type: array ends: items: $ref: '#/components/schemas/TranslationLaneEnd' title: Ends type: array stages: items: $ref: '#/components/schemas/TranslationStageCheck' title: Stages type: array required: - stages - ends - addable title: TranslationPipelineCheck type: object TranslationProgress: properties: activeBatches: default: 0 title: Activebatches type: integer cancelledBatches: default: 0 title: Cancelledbatches type: integer completedBatches: default: 0 title: Completedbatches type: integer completedTasks: default: 0 title: Completedtasks type: integer failedBatches: default: 0 title: Failedbatches type: integer resumableBatches: default: 0 title: Resumablebatches type: integer retryableBatches: default: 0 title: Retryablebatches type: integer startableBatches: default: 0 title: Startablebatches type: integer totalBatches: default: 0 title: Totalbatches type: integer totalTasks: default: 0 title: Totaltasks type: integer title: TranslationProgress type: object TranslationStageCheck: properties: action: title: Action type: string inputs: items: $ref: '#/components/schemas/TranslationInputPort' title: Inputs type: array outputs: items: $ref: '#/components/schemas/TranslationOutputPort' title: Outputs type: array warning: anyOf: - type: string - type: 'null' title: Warning required: - action - inputs - outputs - warning title: TranslationStageCheck type: object TranslationStageRead: properties: action: title: Action type: string config: additionalProperties: true title: Config type: object stageId: format: uuid title: Stageid type: string stageNum: title: Stagenum type: integer required: - stageId - stageNum - action - config title: TranslationStageRead type: object TranslationStageRequest: properties: action: title: Action type: string config: additionalProperties: true title: Config type: object required: - action title: TranslationStageRequest type: object TranslationTaskRead: properties: batchId: format: uuid title: Batchid type: string claimExpiresAt: anyOf: - format: date-time type: string - type: 'null' title: Claimexpiresat error: anyOf: - type: string - type: 'null' title: Error failedAt: anyOf: - format: date-time type: string - type: 'null' title: Failedat outputFileId: anyOf: - format: uuid type: string - type: 'null' title: Outputfileid requestFileId: anyOf: - format: uuid type: string - type: 'null' title: Requestfileid stageId: format: uuid title: Stageid type: string status: $ref: '#/components/schemas/TranslationTaskStatus' taskId: format: uuid title: Taskid type: string required: - taskId - stageId - batchId - status - failedAt - error - claimExpiresAt - requestFileId - outputFileId title: TranslationTaskRead type: object TranslationTaskStatus: enum: - waiting - ready - preparing - prepared - submitting - processing - processed - finalizing - complete title: TranslationTaskStatus type: string UpdateChapter: description: "Pydantic schema to validate data for updating chapter metadata.\n\ \nAttributes:\n chapter_title: The new title for the chapter." properties: chapterTitle: title: Chaptertitle type: string required: - chapterTitle title: UpdateChapter type: object UpdateChapterContent: description: "Pydantic schema to validate data for updating the text content\ \ of a chapter. The chapter_id is expected to be passed via the URL path.\n\ \nAttributes:\n text_ops: A list of text operations (insertions or deletions)\ \ to apply to the existing text content.\n chapter_content_id: The UUID\ \ of the text content, used for optimistic concurrency control when updating\ \ text." properties: chapterContentId: format: uuid title: Chaptercontentid type: string textOps: items: $ref: '#/components/schemas/TextOp' title: Textops type: array required: - textOps - chapterContentId title: UpdateChapterContent type: object UpdateGlossaryTerm: properties: term: maxLength: 100 minLength: 1 title: Term type: string termKind: anyOf: - $ref: '#/components/schemas/TermKind' - type: 'null' required: - term title: UpdateGlossaryTerm type: object UpdateInstanceRequest: additionalProperties: false properties: fields: additionalProperties: $ref: '#/components/schemas/MDataType' maxProperties: 100 minProperties: 1 propertyNames: $ref: '#/components/schemas/FieldName' title: Fields type: object required: - fields title: UpdateInstanceRequest type: object UpdateLabelDataStream: description: "Pydantic schema for an atomic stream of label operations.\n\n\ Attributes:\n ops: A list of label operations." properties: ops: items: $ref: '#/components/schemas/LabelOp' title: Ops type: array required: - ops title: UpdateLabelDataStream type: object UpdateLabelGroup: description: "Pydantic schema for validating forms for updating a label group.\n\ \nAttributes:\n label_group_name: New name of label group." properties: labelGroupName: maxLength: 31 title: Labelgroupname type: string required: - labelGroupName title: UpdateLabelGroup type: object UpdateLabelOp: description: "Pydantic schema for a label update operation. Partial updates\ \ performed on label with label_id.\n\nAttributes:\n op: The string literal\ \ 'update'.\n label_id: ID of the label to update.\n start_pos: Optional\ \ parameter. The new start position of the label.\n end_pos: Optional parameter.\ \ The new end position of the label.\n dirty: Optional parameter. Value\ \ to change the current label's dirty value to.\n entity_group: Optional\ \ parameter. New entity group for this label.\n score: Optional parameter.\ \ New score for the entity." properties: dirty: anyOf: - type: boolean - type: 'null' title: Dirty endPos: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Endpos entityGroup: anyOf: - maxLength: 64 type: string - type: 'null' title: Entitygroup labelId: format: uuid title: Labelid type: string op: const: update title: Op type: string score: anyOf: - maximum: 1.0 minimum: 0.0 type: number - type: 'null' title: Score startPos: anyOf: - minimum: 0.0 type: integer - type: 'null' title: Startpos required: - op - labelId title: UpdateLabelOp type: object UpdateMemoryContent: properties: mark: anyOf: - minLength: 1 type: string - type: 'null' title: Mark memoryContent: minLength: 1 title: Memorycontent type: string required: - memoryContent - mark title: UpdateMemoryContent type: object UpdateNovel: description: "Pydantic schema to validate forms for updating a novel. The novel\ \ id will be passed into the router endpoint.\n\nAttributes:\n novel_title:\ \ Updated title to novel we are updating. If None, then do not update.\n \ \ novel_description: Updated description of novel we are updating. If None,\ \ then do not update.\n novel_author: Author of novel we are creating.\ \ If None, then do not update.\n novel_visibility: Updated visibility level\ \ of novel we are updating. If None, then do not update.\n novel_type:\ \ Updated novel type. If None, then do not update." properties: novelAuthor: anyOf: - type: string - type: 'null' title: Novelauthor novelDescription: anyOf: - type: string - type: 'null' title: Noveldescription novelTitle: anyOf: - type: string - type: 'null' title: Noveltitle novelType: anyOf: - $ref: '#/components/schemas/NovelType' - type: 'null' novelVisibility: anyOf: - $ref: '#/components/schemas/Visibility' - type: 'null' title: UpdateNovel type: object UpdateReviewStatus: properties: reviewStatus: $ref: '#/components/schemas/ReviewStatus' required: - reviewStatus title: UpdateReviewStatus type: object UpdateSourceWork: description: "Pydantic schema to validate forms for updating a source work.\n\ \nAttributes:\n source_work_title: Updated title. If None, do not update.\n\ \ source_work_description: Updated description. If None, do not update." properties: sourceWorkDescription: anyOf: - type: string - type: 'null' title: Sourceworkdescription sourceWorkTitle: anyOf: - type: string - type: 'null' title: Sourceworktitle title: UpdateSourceWork type: object User: description: "Pydantic model for user information.\n\nAttributes:\n user_id:\ \ id of this user.\n user_name: Username for this user.\n user_type:\ \ A value in UserType (e.g. 'admin', or 'user')" properties: userId: format: uuid title: Userid type: string userName: title: Username type: string userType: $ref: '#/components/schemas/UserType' required: - userId - userName - userType title: User type: object UserType: description: Enum of possible user types. enum: - user - admin title: UserType type: string ValidateFunctionDefinitionRequest: additionalProperties: false properties: functionDefinition: additionalProperties: true title: Functiondefinition type: object required: - functionDefinition title: ValidateFunctionDefinitionRequest type: object ValidationError: properties: ctx: title: Context type: object input: title: Input loc: items: anyOf: - type: string - type: integer title: Location type: array msg: title: Message type: string type: title: Error Type type: string required: - loc - msg - type title: ValidationError type: object Visibility: enum: - 0 - 1 - 2 - 3 title: Visibility type: integer WorkflowOperationAccepted: properties: jobId: format: uuid title: Jobid type: string workflow: $ref: '#/components/schemas/WorkflowResponse' required: - jobId - workflow title: WorkflowOperationAccepted type: object WorkflowResponse: properties: createdAt: format: date-time title: Createdat type: string instanceCount: title: Instancecount type: integer jobId: anyOf: - format: uuid type: string - type: 'null' title: Jobid labelGroupIds: items: format: uuid type: string title: Labelgroupids type: array novelIds: items: format: uuid type: string title: Novelids type: array schema: $ref: '#/components/schemas/Schema' updatedAt: format: date-time title: Updatedat type: string useCase: $ref: '#/components/schemas/WorkflowUseCase' workflowId: format: uuid title: Workflowid type: string workflowMessage: anyOf: - type: string - type: 'null' title: Workflowmessage workflowName: anyOf: - type: string - type: 'null' title: Workflowname workflowStatus: $ref: '#/components/schemas/WorkflowStatus' required: - workflowId - workflowName - useCase - schema - jobId - workflowStatus - workflowMessage - novelIds - labelGroupIds - instanceCount - createdAt - updatedAt title: WorkflowResponse type: object WorkflowStatus: enum: - new - pending - processing - complete - failed title: WorkflowStatus type: string WorkflowSummary: properties: createdAt: format: date-time title: Createdat type: string jobId: anyOf: - format: uuid type: string - type: 'null' title: Jobid schema: $ref: '#/components/schemas/Schema' updatedAt: format: date-time title: Updatedat type: string useCase: $ref: '#/components/schemas/WorkflowUseCase' workflowId: format: uuid title: Workflowid type: string workflowMessage: anyOf: - type: string - type: 'null' title: Workflowmessage workflowName: anyOf: - type: string - type: 'null' title: Workflowname workflowStatus: $ref: '#/components/schemas/WorkflowStatus' required: - workflowId - workflowName - useCase - schema - jobId - workflowStatus - workflowMessage - createdAt - updatedAt title: WorkflowSummary type: object WorkflowUseCase: enum: - advanced - glossary title: WorkflowUseCase type: string securitySchemes: OAuth2PasswordBearer: flows: password: scopes: {} tokenUrl: token type: oauth2 info: title: FastAPI version: 0.1.0 openapi: 3.1.0 paths: /auto-label-runs: get: description: "List autolabel runs for a novel.\n\nArgs:\n novel_id: UUID\ \ of novel to query runs for.\n mine: If true, only return runs triggered\ \ by the current user." operationId: read_auto_label_runs_auto_label_runs_get parameters: - in: query name: novelId required: true schema: format: uuid title: Novelid type: string - in: query name: mine required: false schema: default: false title: Mine type: boolean responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/AutoLabelRun' title: Response Read Auto Label Runs Auto Label Runs Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Auto Label Runs /auto-label-runs/{runId}/auto-labels: get: description: "Get autolabel metadata for all autolabels in a run.\n\nArgs:\n\ \ run_id: UUID of the run.\n start: Optional inclusive lower bound on\ \ chapter number.\n end: Optional exclusive upper bound on chapter number." operationId: read_auto_labels_by_run_auto_label_runs__runId__auto_labels_get parameters: - in: path name: runId required: true schema: format: uuid title: Runid type: string - in: query name: start required: false schema: anyOf: - type: integer - type: 'null' title: Start - in: query name: end required: false schema: anyOf: - type: integer - type: 'null' title: End responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/AutoLabelMetaWithCid' title: Response Read Auto Labels By Run Auto Label Runs Runid Auto Labels Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Auto Labels By Run /auto-labels: post: description: 'Create a new autolabel run and autolabels for matching chapters. The run is created first, then autolabel entries are inserted for each matching chapter. Worker tasks are dispatched for each autolabel.' operationId: create_autolabels_auto_labels_post parameters: - in: query name: requestKey required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Requestkey requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateAutoLabels' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/CreateAutoLabelsResponse' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Invalid request data. '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Novel not found or inaccessible. '409': content: application/json: schema: $ref: '#/components/schemas/RequestConflictErrorResponse' description: Request key conflict. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Autolabels /auto-labels/{autoLabelId}: get: description: "Retrieve a single autolabel with its label data.\n\nArgs:\n \ \ auto_label_id: UUID of the autolabel." operationId: read_autolabel_by_id_auto_labels__autoLabelId__get parameters: - in: path name: autoLabelId required: true schema: format: uuid title: Autolabelid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/AutoLabel' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Autolabel By Id /cached/{cachedId}: get: operationId: get_cached_result_cached__cachedId__get parameters: - in: path name: cachedId required: true schema: format: uuid title: Cachedid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/CacheEntry' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Cached result not found. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Get Cached Result /chapter-contents/{chapterContentId}: get: description: "Endpoint for retrieving a specific version of chapter content\ \ by its id.\n\nRaises:\n 404: Chapter content not found (or insufficient\ \ permissions)." operationId: read_chapter_content_by_id_chapter_contents__chapterContentId__get parameters: - in: path name: chapterContentId required: true schema: format: uuid title: Chaptercontentid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ChapterContent' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Chapter Content By Id /chapter-contents/{chapterContentId}/term-search: get: description: "Endpoint for finding every occurrence of a term in one chapter\ \ content version, with line previews.\n\nRaises:\n 404: Chapter content\ \ not found (or insufficient permissions)." operationId: search_chapter_content_term_chapter_contents__chapterContentId__term_search_get parameters: - in: path name: chapterContentId required: true schema: format: uuid title: Chaptercontentid type: string - description: Exact text to find. in: query name: term required: true schema: description: Exact text to find. maxLength: 200 minLength: 1 title: Term type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ChapterContentTermSearch' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Search Chapter Content Term /chapters: get: description: "Endpoint for retrieving chapters by novel_id.\n\nRaises:\n \ \ 404: Novel not found (or insufficient permissions)." operationId: read_chapters_by_novel_chapters_get parameters: - in: query name: novelId required: true schema: format: uuid title: Novelid type: string - in: query name: start required: false schema: anyOf: - type: integer - type: 'null' title: Start - in: query name: end required: false schema: anyOf: - type: integer - type: 'null' title: End responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Chapter' title: Response Read Chapters By Novel Chapters Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Chapters By Novel /chapters/upload: post: description: "Create one or more chapters and their initial content versions\ \ atomically.\n\nRaises:\n 400: The upload request cannot be processed.\n\ \ 401: Authentication failed or the user cannot add chapters to this novel.\n\ \ 404: The authenticated user or requested novel was not found.\n 409:\ \ One or more chapter numbers already exist in this novel." operationId: create_chapters_by_upload_chapters_upload_post requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/Body_create_chapters_by_upload_chapters_upload_post' required: true responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Chapter' title: Response Create Chapters By Upload Chapters Upload Post type: array description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: The upload request cannot be processed. '401': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Authentication failed or the user cannot add chapters to this novel. '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: The authenticated user or requested novel was not found. '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: One or more chapter numbers already exist in this novel. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Chapters By Upload /chapters/{chapterId}: delete: description: "Delete a chapter from the database.\n\nRaises:\n 404: Chapter\ \ not found.\n 401: Insufficient permissions.\n 500: Delete failed for\ \ other reasons." operationId: delete_chapter_chapters__chapterId__delete parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/OperationStatus' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Delete Chapter get: description: "Endpoint for retrieving chapter by id.\n\nRaises:\n 404: Chapter\ \ not found (or insufficient permissions)." operationId: read_chapter_by_id_chapters__chapterId__get parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Chapter' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Chapter By Id patch: description: "Update chapter metadata.\n\nRaises:\n 404: Chapter not found.\n\ \ 401: Insufficient permissions.\n 400: Field in request too long." operationId: update_chapter_chapters__chapterId__patch parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateChapter' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Chapter' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Chapter /chapters/{chapterId}/content: get: description: "Endpoint for retrieving the most recent content of a chapter.\n\ \nRaises:\n 404: Chapter not found, or chapter has no content." operationId: read_chapter_content_chapters__chapterId__content_get parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ChapterContent' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Chapter Content patch: description: "Apply text operations to the most recent content of a chapter.\ \ Uses optimistic concurrency\nvia chapter_content_id -- if the content has\ \ been modified since the client last fetched it,\na 409 is returned.\n\n\ Raises:\n 404: Chapter content not found.\n 409: Chapter content is\ \ outdated (someone else modified it).\n 401: Insufficient permissions\ \ to modify this chapter." operationId: update_chapter_content_chapters__chapterId__content_patch parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: requestKey required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Requestkey requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateChapterContent' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ModifyChapterContentResponse' description: Successful Response '401': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Insufficient permissions to modify this chapter. '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Chapter content not found. '409': content: application/json: schema: $ref: '#/components/schemas/RequestConflictErrorResponse' description: Chapter content is outdated, or the request key already exists. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Chapter Content /chapters/{chapterId}/content-status/{chapterContentId}: get: description: "Check whether a chapter_content_id is the latest version for a\ \ chapter.\n\nRaises:\n 404: Chapter content not found (or insufficient\ \ read permissions).\n 409: Chapter content is outdated." operationId: read_chapter_content_status_chapters__chapterId__content_status__chapterContentId__get parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: path name: chapterContentId required: true schema: format: uuid title: Chaptercontentid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/OperationStatus' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Chapter Content Status /chapters/{chapterId}/content-versions: get: description: 'Endpoint for retrieving all content version metadata for a chapter. Returns an empty list if the chapter has no content versions or doesn''t exist.' operationId: read_chapter_content_versions_chapters__chapterId__content_versions_get parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/ChapterContentMeta' title: Response Read Chapter Content Versions Chapters Chapterid Content Versions Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Chapter Content Versions /chapters/{chapterId}/publish: post: description: "Publish a chapter (make it public).\n\nRaises:\n 404: Chapter\ \ not found.\n 401: Insufficient permissions." operationId: action_publish_chapter_chapters__chapterId__publish_post parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Chapter' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Action Publish Chapter /edit-chapter-data/{chapterId}: post: description: "Gets all data associated with a chapter required for editing.\n\ \nArgs:\n chapter_id: Chapter id of requested chapter\n eager: List\ \ of label group IDs for which to fetch eager label data\n\nRaises:\n 404:\ \ Chapter not found (or insufficient permissions).\n 403: Insufficient\ \ permissions to access data for other user." operationId: read_edit_chapter_data_edit_chapter_data__chapterId__post parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: subjectId required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Subjectid requestBody: content: application/json: schema: description: List of label group IDs for which to fetch eager label data items: format: uuid type: string title: Eager type: array required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/EditChapterData' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Edit Chapter Data /edit-chapter-data/{chapterId}/label-data: post: description: "Fetch label data and labels for specific label groups on a chapter's\ \ most\nrecent content version. Used by the reload group operation.\n\nRaises:\n\ \ 404: Chapter not found (or insufficient permissions).\n 403: Insufficient\ \ permissions to access data for other user." operationId: read_edit_chapter_label_data_edit_chapter_data__chapterId__label_data_post parameters: - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: subjectId required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Subjectid requestBody: content: application/json: schema: description: Label group IDs to fetch label data and labels for items: format: uuid type: string title: Labelgroupids type: array required: true responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/EagerEntry' title: Response Read Edit Chapter Label Data Edit Chapter Data Chapterid Label Data Post type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Edit Chapter Label Data /filters/functions: get: description: List saved function definitions. operationId: read_functions_filters_functions_get parameters: - in: query name: search required: false schema: anyOf: - type: string - type: 'null' title: Search - in: query name: namespace required: false schema: anyOf: - type: string - type: 'null' title: Namespace - in: query name: limit required: false schema: default: 50 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: cursor required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Cursor responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/FunctionDefinitionMeta' title: Response Read Functions Filters Functions Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Functions tags: - filters post: description: Save an immutable function definition in the shared registry. operationId: create_filter_function requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateFunctionDefinitionRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/FunctionDefinitionResponse' description: Successful Response '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Filter Function tags: - filters /filters/functions/validate: post: description: Validate a function draft and return its computed signature without saving it. operationId: validate_filter_function requestBody: content: application/json: schema: $ref: '#/components/schemas/ValidateFunctionDefinitionRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/FunctionDefinitionValidationResponse' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Validate Filter Function tags: - filters /filters/functions/{functionDefinitionId}: get: description: Return one saved function definition. operationId: read_function_filters_functions__functionDefinitionId__get parameters: - in: path name: functionDefinitionId required: true schema: format: uuid title: Functiondefinitionid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/FunctionDefinitionResponse' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Function tags: - filters /filters/groupings/{groupingId}: get: description: Return one grouping with derived output metadata. operationId: read_grouping_filters_groupings__groupingId__get parameters: - in: path name: groupingId required: true schema: format: uuid title: Groupingid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/GroupingResponse' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Grouping tags: - filters /filters/groupings/{groupingId}/values: get: description: List distinct values and counts for one completed grouping. operationId: read_grouping_values_filters_groupings__groupingId__values_get parameters: - in: path name: groupingId required: true schema: format: uuid title: Groupingid type: string - in: query name: search required: false schema: anyOf: - type: string - type: 'null' title: Search - in: query name: limit required: false schema: default: 50 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: offset required: false schema: default: 0 minimum: 0 title: Offset type: integer responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/GroupValueCount' title: Response Read Grouping Values Filters Groupings Groupingid Values Get type: array description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Grouping Values tags: - filters /filters/instances/query: post: description: Query instances with grouping filters and scalar sort keys. operationId: read_instances_advanced_filters_instances_query_post requestBody: content: application/json: schema: $ref: '#/components/schemas/InstanceQuery' required: true responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/InstanceQueryResult' title: Response Read Instances Advanced Filters Instances Query Post type: array description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Instances Advanced tags: - filters /filters/instances/{instanceId}: patch: description: Update mutable scalar fields on one completed workflow instance. operationId: update_filter_instance parameters: - in: path name: instanceId required: true schema: format: uuid title: Instanceid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateInstanceRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/InstanceResponse' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Filter Instance tags: - filters /filters/runners/python/annotation: post: description: Add mutable annotation fields to an existing workflow. operationId: run_python_annotation requestBody: content: application/json: schema: $ref: '#/components/schemas/PythonAnnotationRequest' required: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/WorkflowOperationAccepted' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Run Python Annotation tags: - filters /filters/runners/python/filter: post: description: Create and enqueue a filtered workflow. operationId: run_python_filter requestBody: content: application/json: schema: $ref: '#/components/schemas/PythonFilterRequest' required: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/WorkflowOperationAccepted' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Run Python Filter tags: - filters /filters/runners/python/group: post: description: Create and enqueue grouping assignments for a workflow. operationId: run_python_group requestBody: content: application/json: schema: $ref: '#/components/schemas/PythonGroupRequest' required: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/GroupOperationAccepted' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Run Python Group tags: - filters /filters/runners/python/label-source: post: description: Create and enqueue a workflow from the current labels in a group. operationId: run_python_label_source requestBody: content: application/json: schema: $ref: '#/components/schemas/PythonLabelSourceRequest' required: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/WorkflowOperationAccepted' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Run Python Label Source tags: - filters /filters/runners/python/map: post: description: Create and enqueue a mapped workflow. operationId: run_python_map requestBody: content: application/json: schema: $ref: '#/components/schemas/PythonMapRequest' required: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/WorkflowOperationAccepted' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Run Python Map tags: - filters /filters/workflows: get: description: List workflows accessible to the current user. operationId: read_workflows_filters_workflows_get parameters: - in: query name: novelId required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Novelid - in: query name: labelGroupId required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Labelgroupid - in: query name: useCase required: false schema: anyOf: - $ref: '#/components/schemas/WorkflowUseCase' - type: 'null' title: Usecase - in: query name: status required: false schema: anyOf: - $ref: '#/components/schemas/WorkflowStatus' - type: 'null' title: Status - in: query name: search required: false schema: anyOf: - type: string - type: 'null' title: Search - in: query name: limit required: false schema: default: 50 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: cursor required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Cursor responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/WorkflowSummary' title: Response Read Workflows Filters Workflows Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Workflows tags: - filters /filters/workflows/{workflowId}: get: description: Return one workflow with its permission scope and instance count. operationId: read_workflow_filters_workflows__workflowId__get parameters: - in: path name: workflowId required: true schema: format: uuid title: Workflowid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/WorkflowResponse' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Workflow tags: - filters patch: description: Rename or clear the name of an accessible workflow. operationId: rename_filter_workflow parameters: - in: path name: workflowId required: true schema: format: uuid title: Workflowid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RenameWorkflowRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/WorkflowResponse' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Rename Filter Workflow tags: - filters /filters/workflows/{workflowId}/groupings: get: description: List groupings attached to one workflow. operationId: read_workflow_groupings_filters_workflows__workflowId__groupings_get parameters: - in: path name: workflowId required: true schema: format: uuid title: Workflowid type: string - in: query name: status required: false schema: anyOf: - $ref: '#/components/schemas/GroupingStatus' - type: 'null' title: Status - in: query name: limit required: false schema: default: 50 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: cursor required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Cursor responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/GroupingSummary' title: Response Read Workflow Groupings Filters Workflows Workflowid Groupings Get type: array description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Workflow Groupings tags: - filters /filters/workflows/{workflowId}/instances: get: description: List instances of one completed workflow. operationId: read_workflow_instances_filters_workflows__workflowId__instances_get parameters: - in: path name: workflowId required: true schema: format: uuid title: Workflowid type: string - in: query name: limit required: false schema: default: 50 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: cursor required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Cursor responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/InstanceResponse' title: Response Read Workflow Instances Filters Workflows Workflowid Instances Get type: array description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Workflow Instances tags: - filters /label-datas: get: description: Gets all label datas in a label group, optionally filtered by chapter range. operationId: read_label_datas_by_group_chapters_label_datas_get parameters: - in: query name: labelGroupId required: true schema: format: uuid title: Labelgroupid type: string - in: query name: start required: false schema: anyOf: - type: integer - type: 'null' title: Start - in: query name: end required: false schema: anyOf: - type: integer - type: 'null' title: End responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/LabelData' title: Response Read Label Datas By Group Chapters Label Datas Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Datas By Group Chapters /label-datas/{labelDataId}: get: description: "Gets a label data by id.\n\nRaises:\n 404: Label data not found\ \ (or insufficient permissions)." operationId: read_label_data_label_datas__labelDataId__get parameters: - in: path name: labelDataId required: true schema: format: uuid title: Labeldataid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/LabelData' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Data patch: description: "Applies a stream of edit operations to labels.\n\nRaises:\n \ \ 404: Label data or its underlying revision text not found, or target label\ \ does not exist.\n 409: Concurrent modification or label overlap detected.\n\ \ 400: Operation positions out of bounds or invalid operation." operationId: update_label_data_stream_label_datas__labelDataId__patch parameters: - in: path name: labelDataId required: true schema: format: uuid title: Labeldataid type: string - in: query name: requestKey required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Requestkey requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateLabelDataStream' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/OpsResult' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Operation positions are out of bounds or the operation is otherwise invalid. '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Label data, chapter content, or target label not found. '409': content: application/json: schema: $ref: '#/components/schemas/RequestConflictErrorResponse' description: Label stream conflict, such as a concurrent update, overlap violation, or request-key conflict. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Label Data Stream /label-datas/{labelDataId}/labels: get: description: Get the specific list of labels inside a label data entry. operationId: read_labels_by_label_data_label_datas__labelDataId__labels_get parameters: - in: path name: labelDataId required: true schema: format: uuid title: Labeldataid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Label' title: Response Read Labels By Label Data Label Datas Labeldataid Labels Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Labels By Label Data /label-groups: get: description: Gets all label groups of the current user for a novel. operationId: read_label_groups_label_groups_get parameters: - in: query name: novelId required: true schema: format: uuid title: Novelid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/LabelGroup' title: Response Read Label Groups Label Groups Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Groups post: description: "Creates a new label group.\n\nRaises:\n 404: Novel not found.\n\ \ 400: Label group name is too long." operationId: create_label_group_label_groups_post parameters: - in: query name: requestKey required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Requestkey requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateLabelGroup' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LabelGroup' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Label group name is too long. '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Novel associated with this label group not found. '409': content: application/json: schema: $ref: '#/components/schemas/RequestConflictErrorResponse' description: Request key conflict. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Label Group /label-groups-with-role: get: description: Gets all label groups of the current user for a novel, along with their roles. operationId: read_label_groups_with_role_label_groups_with_role_get parameters: - in: query name: novelId required: true schema: format: uuid title: Novelid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/LabelGroupWithRole' title: Response Read Label Groups With Role Label Groups With Role Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Groups With Role /label-groups/{labelGroupId}: get: description: "Gets a label group by id.\n\nRaises:\n 404: Label group not\ \ found (or insufficient permissions)." operationId: read_label_group_label_groups__labelGroupId__get parameters: - in: path name: labelGroupId required: true schema: format: uuid title: Labelgroupid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/LabelGroup' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Group patch: description: "Updates a label group (e.g. rename).\n\nRaises:\n 404: Label\ \ group not found.\n 400: Label group name is too long." operationId: update_label_group_label_groups__labelGroupId__patch parameters: - in: path name: labelGroupId required: true schema: format: uuid title: Labelgroupid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateLabelGroup' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LabelGroup' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Label Group /label-groups/{labelGroupId}/contributors: get: description: Get the list of contributors for a label group. operationId: read_label_contributors_label_groups__labelGroupId__contributors_get parameters: - in: path name: labelGroupId required: true schema: format: uuid title: Labelgroupid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/LabelContributor' title: Response Read Label Contributors Label Groups Labelgroupid Contributors Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Contributors /label-groups/{labelGroupId}/label-datas: post: description: "Creates a label data entry for a revision text in a label group.\n\ \nRaises:\n 404: Label group or revision text not found.\n 409: Label\ \ data for this revision text already exists in this group." operationId: create_label_data_label_groups__labelGroupId__label_datas_post parameters: - in: path name: labelGroupId required: true schema: format: uuid title: Labelgroupid type: string - in: query name: requestKey required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Requestkey requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateLabelData' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/LabelData' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Label group or chapter content not found. '409': content: application/json: schema: $ref: '#/components/schemas/RequestConflictErrorResponse' description: Label data already exists for this chapter content in the label group, or the request key already exists. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Label Data /label-groups/{labelGroupId}/label-promotions: post: description: Start promoting an autolabel run's labels into a label group in the background. operationId: create_label_promotion_label_groups__labelGroupId__label_promotions_post parameters: - in: path name: labelGroupId required: true schema: format: uuid title: Labelgroupid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateLabelDataByAutoLabel' required: true responses: '202': content: application/json: schema: $ref: '#/components/schemas/CreatedLabelPromotion' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Label group or run not found, or not editable. '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: A promotion for this run and group is running. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Label Promotion /label-promotions/{promotionId}/failures: get: description: List the chapters a label promotion job could not promote, in processing order. operationId: read_label_promotion_failures_label_promotions__promotionId__failures_get parameters: - in: path name: promotionId required: true schema: format: uuid title: Promotionid type: string - in: query name: limit required: false schema: default: 50 maximum: 200 minimum: 1 title: Limit type: integer - in: query name: offset required: false schema: default: 0 minimum: 0 title: Offset type: integer responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/LabelPromotionFailure' title: Response Read Label Promotion Failures Label Promotions Promotionid Failures Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Promotion Failures /labels/{labelId}: get: description: Gets a label by id. operationId: read_label_labels__labelId__get parameters: - in: path name: labelId required: true schema: format: uuid title: Labelid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Label' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label /languages: get: description: "Retrieves all languages in the database.\n\nArgs:\n db: Database\ \ session." operationId: read_all_languages_languages_get responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Language' title: Response Read All Languages Languages Get type: array description: Successful Response summary: Read All Languages /languages/{languageCode}: get: description: "Retrieves a language by its code.\n\nArgs:\n language_code:\ \ The code of the language to retrieve.\n db: Database session." operationId: read_language_by_code_languages__languageCode__get parameters: - in: path name: languageCode required: true schema: title: Languagecode type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Language' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Read Language By Code /memories/{memoryId}: delete: operationId: remove_memory_memories__memoryId__delete parameters: - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string responses: '204': description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Remove Memory get: operationId: read_memory_memories__memoryId__get parameters: - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Memory' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory /memories/{memoryId}/content: patch: operationId: edit_memory_content_memories__memoryId__content_patch parameters: - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateMemoryContent' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Memory' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Memory Content /memories/{memoryId}/expiration: patch: operationId: edit_memory_expiration_memories__memoryId__expiration_patch parameters: - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ExpireMemory' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Memory' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Memory Expiration /memories/{memoryId}/review-status: patch: operationId: edit_memory_review_status_memories__memoryId__review_status_patch parameters: - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateReviewStatus' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Memory' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Memory Review Status /memory-agent/config: get: operationId: read_memory_agent_config_memory_agent_config_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryAgentConfig' description: Successful Response '401': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Unauthorized security: - OAuth2PasswordBearer: [] summary: Read Memory Agent Config /memory-agent/job-summaries: get: operationId: read_memory_job_summaries_memory_agent_job_summaries_get parameters: - in: query name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryJobSummaryList' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Job Summaries /memory-agent/job-summaries/{memoryJobId}: get: operationId: read_memory_job_summary_memory_agent_job_summaries__memoryJobId__get parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryJobSummarySnapshot' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Job Summary /memory-agent/jobs: get: operationId: read_memory_jobs_memory_agent_jobs_get parameters: - in: query name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/MemoryJob' title: Response Read Memory Jobs Memory Agent Jobs Get type: array description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Jobs post: operationId: add_memory_job_memory_agent_jobs_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateMemoryJob' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/MemoryJob' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Add Memory Job /memory-agent/jobs/{memoryJobId}: delete: operationId: remove_memory_job_memory_agent_jobs__memoryJobId__delete parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string responses: '204': description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Remove Memory Job get: operationId: read_memory_job_memory_agent_jobs__memoryJobId__get parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryJob' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Job /memory-agent/jobs/{memoryJobId}/abort: post: operationId: abort_memory_job_memory_agent_jobs__memoryJobId__abort_post parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryJob' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Abort Memory Job /memory-agent/jobs/{memoryJobId}/start: post: operationId: start_memory_job_memory_agent_jobs__memoryJobId__start_post parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string responses: '202': content: application/json: schema: $ref: '#/components/schemas/MemoryJob' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Start Memory Job /memory-agent/jobs/{memoryJobId}/tasks: get: operationId: read_memory_tasks_memory_agent_jobs__memoryJobId__tasks_get parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_MemoryChapterTask_' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Tasks /memory-agent/jobs/{memoryJobId}/tasks/{chapterId}: delete: operationId: remove_memory_task_memory_agent_jobs__memoryJobId__tasks__chapterId__delete parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: stageNum required: false schema: default: 0 title: Stagenum type: integer responses: '204': description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Remove Memory Task get: operationId: read_memory_task_memory_agent_jobs__memoryJobId__tasks__chapterId__get parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: stageNum required: false schema: default: 0 title: Stagenum type: integer responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryChapterTask' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Task /memory-agent/jobs/{memoryJobId}/tasks/{chapterId}/retry: post: operationId: retry_memory_task_memory_agent_jobs__memoryJobId__tasks__chapterId__retry_post parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: stageNum required: false schema: default: 0 title: Stagenum type: integer responses: '202': content: application/json: schema: $ref: '#/components/schemas/MemoryChapterTask' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Retry Memory Task /memory-agent/jobs/{memoryJobId}/tasks/{chapterId}/start: post: operationId: start_memory_task_memory_agent_jobs__memoryJobId__tasks__chapterId__start_post parameters: - in: path name: memoryJobId required: true schema: format: uuid title: Memoryjobid type: string - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: stageNum required: false schema: default: 0 title: Stagenum type: integer responses: '202': content: application/json: schema: $ref: '#/components/schemas/MemoryChapterTask' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error '503': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Service Unavailable security: - OAuth2PasswordBearer: [] summary: Start Memory Task /memory-groups: get: operationId: read_memory_groups_memory_groups_get parameters: - in: query name: novelId required: true schema: format: uuid title: Novelid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/MemoryGroup' title: Response Read Memory Groups Memory Groups Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memory Groups post: operationId: add_memory_group_memory_groups_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateMemoryGroup' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/MemoryGroup' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Add Memory Group /memory-groups/{memoryGroupId}/chapters/{chapterId}/memories: get: operationId: read_memories_at_chapter_memory_groups__memoryGroupId__chapters__chapterId__memories_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: createdExactlyAtChapter required: false schema: default: false title: Createdexactlyatchapter type: boolean - in: query name: pluginNames required: false schema: anyOf: - items: $ref: '#/components/schemas/PluginName' type: array - type: 'null' title: Pluginnames - in: query name: memoryTypes required: false schema: anyOf: - items: $ref: '#/components/schemas/MemoryType' type: array - type: 'null' title: Memorytypes responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_Memory_' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memories At Chapter /memory-groups/{memoryGroupId}/conventions: get: operationId: read_conventions_memory_groups__memoryGroupId__conventions_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: category required: false schema: anyOf: - $ref: '#/components/schemas/ConventionCategory' - type: 'null' title: Category - in: query name: reviewStatuses required: false schema: anyOf: - items: $ref: '#/components/schemas/ReviewStatus' type: array - type: 'null' title: Reviewstatuses responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_ConventionRead_' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Conventions post: operationId: add_convention_memory_groups__memoryGroupId__conventions_post parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SaveConvention' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/ConventionRead' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Add Convention /memory-groups/{memoryGroupId}/conventions/{conventionId}: delete: operationId: remove_convention_memory_groups__memoryGroupId__conventions__conventionId__delete parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: conventionId required: true schema: format: uuid title: Conventionid type: string responses: '204': description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Remove Convention put: operationId: put_convention_memory_groups__memoryGroupId__conventions__conventionId__put parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: conventionId required: true schema: format: uuid title: Conventionid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SaveConvention' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ConventionRead' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Put Convention /memory-groups/{memoryGroupId}/conventions/{conventionId}/review-status: patch: operationId: edit_convention_review_status_memory_groups__memoryGroupId__conventions__conventionId__review_status_patch parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: conventionId required: true schema: format: uuid title: Conventionid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateReviewStatus' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ConventionRead' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Convention Review Status /memory-groups/{memoryGroupId}/glossary/chapters/{chapterId}/memories: get: operationId: read_glossary_memories_at_chapter_memory_groups__memoryGroupId__glossary_chapters__chapterId__memories_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: chapterId required: true schema: format: uuid title: Chapterid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: createdExactlyAtChapter required: false schema: default: false title: Createdexactlyatchapter type: boolean - in: query name: memoryTypes required: false schema: anyOf: - items: $ref: '#/components/schemas/MemoryType' type: array - type: 'null' title: Memorytypes responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_GlossaryMemory_' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Glossary Memories At Chapter /memory-groups/{memoryGroupId}/glossary/memories: get: operationId: read_glossary_memories_memory_groups__memoryGroupId__glossary_memories_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: memoryTypes required: false schema: anyOf: - items: $ref: '#/components/schemas/MemoryType' type: array - type: 'null' title: Memorytypes responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_GlossaryMemory_' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Glossary Memories post: operationId: add_glossary_memory_memory_groups__memoryGroupId__glossary_memories_post parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateGlossaryMemory' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/GlossaryMemory' description: Successful Response '400': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Bad Request '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Add Glossary Memory /memory-groups/{memoryGroupId}/glossary/memories/{memoryId}/terms: get: operationId: read_terms_for_memory_memory_groups__memoryGroupId__glossary_memories__memoryId__terms_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/GlossaryTerm' title: Response Read Terms For Memory Memory Groups Memorygroupid Glossary Memories Memoryid Terms Get type: array description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Terms For Memory put: operationId: replace_glossary_memory_terms_memory_groups__memoryGroupId__glossary_memories__memoryId__terms_put parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: memoryId required: true schema: format: uuid title: Memoryid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ReplaceGlossaryAssociations' required: true responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/GlossaryTerm' title: Response Replace Glossary Memory Terms Memory Groups Memorygroupid Glossary Memories Memoryid Terms Put type: array description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Replace Glossary Memory Terms /memory-groups/{memoryGroupId}/glossary/terms: get: operationId: read_glossary_terms_memory_groups__memoryGroupId__glossary_terms_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: chapterId required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Chapterid - in: query name: search required: false schema: anyOf: - type: string - type: 'null' title: Search - in: query name: reviewStatuses required: false schema: anyOf: - items: $ref: '#/components/schemas/ReviewStatus' type: array - type: 'null' title: Reviewstatuses responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_GlossaryTermSummary_' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Glossary Terms post: operationId: add_glossary_term_memory_groups__memoryGroupId__glossary_terms_post parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateGlossaryTerm' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/GlossaryTerm' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Add Glossary Term /memory-groups/{memoryGroupId}/glossary/terms/{termId}: delete: operationId: remove_glossary_term_memory_groups__memoryGroupId__glossary_terms__termId__delete parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string responses: '204': description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Remove Glossary Term patch: operationId: edit_glossary_term_memory_groups__memoryGroupId__glossary_terms__termId__patch parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateGlossaryTerm' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/GlossaryTerm' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '409': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Conflict '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Glossary Term /memory-groups/{memoryGroupId}/glossary/terms/{termId}/memories: get: operationId: read_memories_for_term_memory_groups__memoryGroupId__glossary_terms__termId__memories_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: chapterId required: false schema: anyOf: - format: uuid type: string - type: 'null' title: Chapterid responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_GlossaryMemory_' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memories For Term /memory-groups/{memoryGroupId}/glossary/terms/{termId}/review-status: patch: operationId: edit_glossary_term_review_status_memory_groups__memoryGroupId__glossary_terms__termId__review_status_patch parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateReviewStatus' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/GlossaryTerm' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Glossary Term Review Status /memory-groups/{memoryGroupId}/memories: get: operationId: read_memories_memory_groups__memoryGroupId__memories_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: query name: skip required: false schema: default: 0 minimum: 0 title: Skip type: integer - in: query name: limit required: false schema: default: 100 maximum: 100 minimum: 1 title: Limit type: integer - in: query name: pluginNames required: false schema: anyOf: - items: $ref: '#/components/schemas/PluginName' type: array - type: 'null' title: Pluginnames - in: query name: memoryTypes required: false schema: anyOf: - items: $ref: '#/components/schemas/MemoryType' type: array - type: 'null' title: Memorytypes responses: '200': content: application/json: schema: $ref: '#/components/schemas/Page_Memory_' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Memories /memory-groups/{memoryGroupId}/translations: get: operationId: read_term_translations_memory_groups__memoryGroupId__translations_get parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: query name: termIds required: true schema: items: format: uuid type: string maxItems: 100 minItems: 1 title: Termids type: array responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/TermTranslationRead' title: Response Read Term Translations Memory Groups Memorygroupid Translations Get type: array description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Term Translations /memory-groups/{memoryGroupId}/translations/{termId}: delete: operationId: remove_term_translation_memory_groups__memoryGroupId__translations__termId__delete parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string responses: '204': description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Remove Term Translation put: operationId: put_term_translation_memory_groups__memoryGroupId__translations__termId__put parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SaveTermTranslation' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TermTranslationRead' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Put Term Translation /memory-groups/{memoryGroupId}/translations/{termId}/review-status: patch: operationId: edit_term_translation_review_status_memory_groups__memoryGroupId__translations__termId__review_status_patch parameters: - in: path name: memoryGroupId required: true schema: format: uuid title: Memorygroupid type: string - in: path name: termId required: true schema: format: uuid title: Termid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateReviewStatus' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TermTranslationRead' description: Successful Response '404': content: application/json: schema: $ref: '#/components/schemas/DetailHTTPErrorResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Edit Term Translation Review Status /novels: get: description: Endpoint for retrieving novels in bulk. operationId: read_novels_novels_get parameters: - in: query name: titleContains required: false schema: anyOf: - type: string - type: 'null' title: Titlecontains responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Novel' title: Response Read Novels Novels Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Novels post: description: "Add a new novel to the database.\n\nRaises:\n 404: Language\ \ code or source work not found.\n 400: Data in some field is too long." operationId: create_novel_novels_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateNovel' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Novel' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Novel /novels/mine: get: description: Endpoint for retrieving novels that the user has special access to. operationId: read_novels_mine_novels_mine_get parameters: - in: query name: editable required: false schema: default: false title: Editable type: boolean - in: query name: titleContains required: false schema: anyOf: - type: string - type: 'null' title: Titlecontains responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Novel' title: Response Read Novels Mine Novels Mine Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Novels Mine /novels/{novelId}: get: description: "Endpoint for retrieving a novel by id.\n\nRaises:\n 404: Novel\ \ not found (or insufficient permissions)." operationId: read_novel_novels__novelId__get parameters: - in: path name: novelId required: true schema: format: uuid title: Novelid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Novel' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Novel patch: description: "Update the novel with novel_id.\n\nRaises:\n 404: Novel not\ \ found.\n 401: Insufficient permissions (user is not owner/editor).\n\ \ 400: Data in some field exceeds maximum length." operationId: update_novel_novels__novelId__patch parameters: - in: path name: novelId required: true schema: format: uuid title: Novelid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateNovel' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Novel' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Novel /novels/{novelId}/chapters: post: description: "Insert a new chapter into the database. Returns chapter metadata\ \ and initial empty content.\n\nRaises:\n 404: Novel not found.\n 409:\ \ Chapter with this chapter number already exists in this novel.\n 401:\ \ Insufficient permissions." operationId: create_chapter_novels__novelId__chapters_post parameters: - in: path name: novelId required: true schema: format: uuid title: Novelid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateChapter' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ChapterData' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Chapter /novels/{novelId}/label-promotions: get: description: 'List a novel''s label promotion jobs: active ones first, then the most recently updated. With `promotionIds`, return only those jobs; ids that are missing or not readable are omitted.' operationId: read_label_promotions_novels__novelId__label_promotions_get parameters: - in: path name: novelId required: true schema: format: uuid title: Novelid type: string - in: query name: limit required: false schema: default: 10 maximum: 50 minimum: 1 title: Limit type: integer - in: query name: promotionIds required: false schema: anyOf: - items: format: uuid type: string maxItems: 10 minItems: 1 type: array - type: 'null' title: Promotionids responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/LabelPromotionJob' title: Response Read Label Promotions Novels Novelid Label Promotions Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Label Promotions /novels/{novelId}/term-search: get: description: "Endpoint for finding every occurrence of a term in the latest\ \ content of a novel's readable chapters.\n\nChapters are returned in chapter\ \ order, one page at a time; totals cover the whole range.\n\nRaises:\n \ \ 404: Novel not found (or insufficient permissions)." operationId: search_novel_term_novels__novelId__term_search_get parameters: - in: path name: novelId required: true schema: format: uuid title: Novelid type: string - description: Exact text to find. in: query name: term required: true schema: description: Exact text to find. maxLength: 200 minLength: 1 title: Term type: string - in: query name: startChapterNum required: false schema: anyOf: - minimum: 0 type: integer - type: 'null' title: Startchapternum - in: query name: endChapterNum required: false schema: anyOf: - minimum: 0 type: integer - type: 'null' title: Endchapternum - in: query name: offset required: false schema: default: 0 minimum: 0 title: Offset type: integer - in: query name: limit required: false schema: default: 50 maximum: 100 minimum: 1 title: Limit type: integer responses: '200': content: application/json: schema: $ref: '#/components/schemas/NovelTermSearch' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Search Novel Term /novels/{novelId}/with-contributors: get: description: "Endpoint for retrieving a novel and its associated users.\n\n\ Raises:\n 404: Novel not found (or insufficient permissions)." operationId: read_novel_with_contributors_novels__novelId__with_contributors_get parameters: - in: path name: novelId required: true schema: format: uuid title: Novelid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/NovelAndUsers' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Novel With Contributors /register: post: description: "Endpoint for registering a new user. Client with registration\ \ request must not be logged in.\n\nArgs:\n request: Create user request.\n\ \ db: Database dependency.\n current_user: Optional user dependency.\ \ Should be None for this function to succeed." operationId: register_user_register_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateUser' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Register User /source-works: get: description: Endpoint for retrieving source works in bulk, optionally filtered by title substring. operationId: read_source_works_source_works_get parameters: - in: query name: titleContains required: false schema: anyOf: - type: string - type: 'null' title: Titlecontains - in: query name: retNovels required: false schema: default: false title: Retnovels type: boolean responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/SourceWorkData' title: Response Read Source Works Source Works Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Source Works post: description: "Create a new source work.\n\nRaises:\n 400: Data in some field\ \ is too long." operationId: create_source_work_source_works_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateSourceWork' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/SourceWork' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create Source Work /source-works/{sourceWorkId}: get: description: "Endpoint for retrieving a source work by id.\n\nRaises:\n 404:\ \ Source work not found (or insufficient permissions)." operationId: read_source_work_source_works__sourceWorkId__get parameters: - in: path name: sourceWorkId required: true schema: format: uuid title: Sourceworkid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/SourceWork' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Source Work patch: description: "Update a source work's metadata.\n\nRaises:\n 404: Source work\ \ not found.\n 401: Insufficient permissions.\n 400: Data in some field\ \ exceeds maximum length." operationId: update_source_work_source_works__sourceWorkId__patch parameters: - in: path name: sourceWorkId required: true schema: format: uuid title: Sourceworkid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateSourceWork' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/SourceWork' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Update Source Work /source-works/{sourceWorkId}/novels: get: description: "Endpoint for retrieving novels belonging to a source work.\n\n\ Raises:\n 404: Source work not found (or insufficient permissions)." operationId: read_novels_by_source_work_source_works__sourceWorkId__novels_get parameters: - in: path name: sourceWorkId required: true schema: format: uuid title: Sourceworkid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/Novel' title: Response Read Novels By Source Work Source Works Sourceworkid Novels Get type: array description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read Novels By Source Work /token: post: description: "Verifies a client's login request and returns a token if it succeeds.\n\ \nArgs:\n db: Database dependency.\n form_data: OAuth2PasswordRequestForm\ \ dependency." operationId: login_for_access_token_token_post requestBody: content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Body_login_for_access_token_token_post' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/Token' description: Successful Response '401': description: Password does not match. '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Login For Access Token /translation-jobs: get: operationId: list_jobs_translation_jobs_get parameters: - in: query name: novelId required: true schema: format: uuid title: Novelid type: string - in: query name: offset required: false schema: default: 0 minimum: 0 title: Offset type: integer - in: query name: limit required: false schema: default: 5 maximum: 50 minimum: 1 title: Limit type: integer responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationJobPage' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: List Jobs tags: - translations post: operationId: create_translation_jobs_post requestBody: content: application/json: schema: $ref: '#/components/schemas/TranslationJobCreateRequest' required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/TranslationJobCreated' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create tags: - translations /translation-jobs/actions: get: description: Return action compatibility and standalone configuration JSON Schemas. operationId: list_actions_translation_jobs_actions_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationActionsRead' description: Successful Response security: - OAuth2PasswordBearer: [] summary: List Actions tags: - translations /translation-jobs/check: post: operationId: check_translation_jobs_check_post requestBody: content: application/json: schema: $ref: '#/components/schemas/TranslationJobDraft' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationPipelineCheck' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Check tags: - translations /translation-jobs/{jobId}: get: operationId: read_translation_jobs__jobId__get parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationJobRead' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read tags: - translations /translation-jobs/{jobId}/batches: get: operationId: list_batches_translation_jobs__jobId__batches_get parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string - in: query name: offset required: false schema: default: 0 minimum: 0 title: Offset type: integer - in: query name: limit required: false schema: default: 5 maximum: 50 minimum: 1 title: Limit type: integer responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationBatchPage' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: List Batches tags: - translations /translation-jobs/{jobId}/batches/{batchId}/cancel: post: operationId: cancel_translation_jobs__jobId__batches__batchId__cancel_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string - in: path name: batchId required: true schema: format: uuid title: Batchid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Cancel tags: - translations /translation-jobs/{jobId}/batches/{batchId}/resume: post: operationId: resume_batch_translation_jobs__jobId__batches__batchId__resume_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string - in: path name: batchId required: true schema: format: uuid title: Batchid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Resume Batch tags: - translations /translation-jobs/{jobId}/batches/{batchId}/retry: post: operationId: retry_translation_jobs__jobId__batches__batchId__retry_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string - in: path name: batchId required: true schema: format: uuid title: Batchid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Retry tags: - translations /translation-jobs/{jobId}/batches/{batchId}/start: post: operationId: start_batch_translation_jobs__jobId__batches__batchId__start_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string - in: path name: batchId required: true schema: format: uuid title: Batchid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Start Batch tags: - translations /translation-jobs/{jobId}/cancel-all: post: operationId: cancel_all_translation_jobs__jobId__cancel_all_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Cancel All tags: - translations /translation-jobs/{jobId}/resume-all: post: operationId: resume_all_translation_jobs__jobId__resume_all_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Resume All tags: - translations /translation-jobs/{jobId}/retry-all: post: operationId: retry_all_translation_jobs__jobId__retry_all_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Retry All tags: - translations /translation-jobs/{jobId}/start: post: operationId: start_translation_jobs__jobId__start_post parameters: - in: path name: jobId required: true schema: format: uuid title: Jobid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/TranslationControlResult' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Start tags: - translations /users: post: description: "Creates a user with metadata request, provided that the current_user\ \ has sufficient permissions.\n\nArgs:\n db: Database dependency.\n \ \ current_user: Current user dependency. Must not be None (e.g. user must\ \ be logged in).\n request: Metadata of user to be added." operationId: create_user_users_post requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateUser' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Create User /users/me: delete: description: Delete the user currently logged in. operationId: delete_user_me_users_me_delete responses: '200': content: application/json: schema: $ref: '#/components/schemas/DeleteUserStatus' description: Successful Response security: - OAuth2PasswordBearer: [] summary: Delete User Me get: description: "Return the current logged in user.\n\nArgs:\n current_user:\ \ Current user dependency." operationId: read_user_me_users_me_get responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: Successful Response security: - OAuth2PasswordBearer: [] summary: Read User Me /users/{userId}: delete: description: Delete the user with user_id if the current user has sufficient permissions to perform this action. Throw an exception if the user currently logged in has insufficient permissions. operationId: delete_user_users__userId__delete parameters: - in: path name: userId required: true schema: format: uuid title: Userid type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/DeleteUserStatus' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Delete User /users/{userName}: get: description: "Get user by username.\n\nArgs:\n user_name: Username of user.\n\ \ db: Database dependency." operationId: read_user_users__userName__get parameters: - in: path name: userName required: true schema: title: Username type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error security: - OAuth2PasswordBearer: [] summary: Read User