openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
paths:
  /users/me/token_spend:
    get:
      tags:
      - accepts-api-key
      summary: Get Token Spend
      description: 'The authenticated user''s token spend over a period, with filters.


        All totals, the series and the breakdowns honour every filter; `items` is

        one page of the matching charges and refunds since `itemised_since`. Refunds
        count against the

        spend they give back, so totals are net.'
      operationId: get_token_spend_users_me_token_spend_get
      parameters:
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          description: Start of the period, inclusive. ISO 8601; without an offset
            it is read as UTC. Defaults to 30 days before `end`.
          title: Start
        description: Start of the period, inclusive. ISO 8601; without an offset it
          is read as UTC. Defaults to 30 days before `end`.
      - name: end
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          description: End of the period, exclusive. ISO 8601; without an offset it
            is read as UTC. Defaults to now.
          title: End
        description: End of the period, exclusive. ISO 8601; without an offset it
          is read as UTC. Defaults to now.
      - name: granularity
        in: query
        required: false
        schema:
          enum:
          - day
          - week
          - month
          type: string
          description: Bucket size of `series`.
          default: day
          title: Granularity
        description: Bucket size of `series`.
      - name: timezone
        in: query
        required: false
        schema:
          type: string
          description: IANA timezone the buckets are cut in, e.g. `Europe/Paris`,
            so a day is the user's day.
          default: UTC
          title: Timezone
        description: IANA timezone the buckets are cut in, e.g. `Europe/Paris`, so
          a day is the user's day.
      - name: category
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              $ref: '#/components/schemas/TokenSpendCategory'
          - type: 'null'
          description: Only these categories. Repeat for several.
          title: Category
        description: Only these categories. Repeat for several.
      - name: source
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: Only these sources (tool names, models, ...). Repeat for several.
          title: Source
        description: Only these sources (tool names, models, ...). Repeat for several.
      - name: chat_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Only spend made in this chat.
          title: Chat Id
        description: Only spend made in this chat.
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Only spend on this project.
          title: Project Id
        description: Only spend on this project.
      - name: asset_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Only spend on this asset.
          title: Asset Id
        description: Only spend on this asset.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 0
          description: Page size of `items`.
          default: 50
          title: Limit
        description: Page size of `items`.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: Offset into `items`.
          default: 0
          title: Offset
        description: Offset into `items`.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiTokenSpend'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/me/usage_report:
    get:
      tags:
      - accepts-api-key
      summary: Get Usage Report
      description: 'The authenticated user''s usage over a period, for charts.


        Tokens spent by kind (analysis, the assistant, generative AI, exports,

        other tools) in total and per day, week or month, next to what was

        billed; the processing jobs, spend on files since deleted, uploads and

        chats of the period; and the library as it is now.'
      operationId: get_usage_report_users_me_usage_report_get
      parameters:
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          description: Start of the period, inclusive. ISO 8601; without an offset
            it is read as UTC. Defaults to 30 days before `end`.
          title: Start
        description: Start of the period, inclusive. ISO 8601; without an offset it
          is read as UTC. Defaults to 30 days before `end`.
      - name: end
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          description: End of the period, exclusive. ISO 8601; without an offset it
            is read as UTC. Defaults to now.
          title: End
        description: End of the period, exclusive. ISO 8601; without an offset it
          is read as UTC. Defaults to now.
      - name: granularity
        in: query
        required: false
        schema:
          enum:
          - day
          - week
          - month
          type: string
          description: Bucket size of `series`.
          default: day
          title: Granularity
        description: Bucket size of `series`.
      - name: timezone
        in: query
        required: false
        schema:
          type: string
          description: IANA timezone days, weeks and months are cut in, e.g. `Europe/Paris`.
          default: UTC
          title: Timezone
        description: IANA timezone days, weeks and months are cut in, e.g. `Europe/Paris`.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiUsageReport'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/me/usage_report/pdf:
    get:
      tags:
      - accepts-api-key
      summary: Get Usage Report Pdf
      description: 'The authenticated user''s usage report, as a PDF to share.


        Part 1 covers the whole life of the account: files and storage, chats,

        and tokens spent by kind (analysis, the assistant, generative AI,

        exports) per month. Part 2 details one month: what was billed each day,

        what it paid for, the processing jobs, spend on files since deleted, the

        files uploaded with their formats, and the chats.'
      operationId: get_usage_report_pdf_users_me_usage_report_pdf_get
      parameters:
      - name: month
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            pattern: ^\d{4}-\d{2}$
          - type: 'null'
          description: The month part 2 details, as `YYYY-MM`. Defaults to the current
            month in `timezone`.
          title: Month
        description: The month part 2 details, as `YYYY-MM`. Defaults to the current
          month in `timezone`.
      - name: timezone
        in: query
        required: false
        schema:
          type: string
          description: IANA timezone days, weeks and months are cut in, e.g. `Europe/Paris`.
          default: UTC
          title: Timezone
        description: IANA timezone days, weeks and months are cut in, e.g. `Europe/Paris`.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: The usage report, as a PDF file.
          content:
            application/pdf: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/sources/list_files:
    get:
      tags:
      - accepts-api-key
      summary: Request Files Processing
      operationId: request_files_processing_users_sources_list_files_get
      parameters:
      - name: path
        in: query
        required: true
        schema:
          type: string
          title: Path
      - name: limit
        in: query
        required: true
        schema:
          type: integer
          exclusiveMinimum: 0
          title: Limit
      - name: page
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 0
          - type: 'null'
          title: Page
      - name: offset
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 0
          - type: 'null'
          title: Offset
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
      - name: folder_on_top
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Folder On Top
      - name: group_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Group Name
      - name: sort_by
        in: query
        required: false
        schema:
          anyOf:
          - enum:
            - modified_at
            - added_at
            type: string
          - type: 'null'
          title: Sort By
      - name: sort_order
        in: query
        required: false
        schema:
          enum:
          - asc
          - desc
          type: string
          default: desc
          title: Sort Order
      - name: filetype
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              $ref: '#/components/schemas/FileType'
          - type: 'null'
          title: Filetype
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFilesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/get:
    get:
      tags:
      - accepts-api-key
      summary: Get User
      operationId: get_user_users_get_get
      deprecated: true
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiUser'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/me:
    get:
      tags:
      - accepts-api-key
      summary: Get Current User
      description: Return the authenticated user's profile, credit balance, and subscription
        snapshot.
      operationId: get_current_user_users_me_get
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiUser'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - accepts-api-key
      summary: Update Current User
      operationId: update_current_user_users_me_patch
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiUser'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - accepts-api-key
      summary: Delete Current User
      description: "Preview \u2014 or, with ``dry_run=false``, carry out \u2014 deleting\
        \ your own account (SSE).\n\n**This previews by default.** ``dry_run`` is\
        \ true unless you say otherwise,\nso a call that forgets the parameter reports\
        \ what deleting the account\n*would* take and touches nothing. The ``done``\
        \ event carries ``preview``\nwith the counts \u2014 assets, chats, assistants,\
        \ groups, the Stripe\nsubscriptions that would be cancelled, whether the Firebase\
        \ login would go\ntoo \u2014 for showing the user what they are about to lose.\n\
        \nA caller that means it passes ``dry_run=false``. That runs the same purge\n\
        as ``POST /admin/delete_account`` and streams the same events: the Stripe\n\
        subscriptions, every asset the user created with its renditions and\nkeyframes,\
        \ their chats, the assistants they authored and the media those\ncarry, the\
        \ groups they solely own, the SQL row, the S3 objects and \u2014 in\nproduction\
        \ only \u2014 the Firebase account.\n\n**A client that means to delete must\
        \ check what it got.** Both modes answer\n200 and end in a ``done`` event;\
        \ only ``dry_run`` and the counters\ndistinguish them. Reporting \"your account\
        \ is deleted\" off the status code\nalone would be wrong for the default call,\
        \ which deleted nothing.\n\nIt streams rather than answering once because\
        \ a large account takes longer\nto delete than a load balancer will hold an\
        \ idle connection open; the\nprogress events are what keep it open. A caller\
        \ that disconnects does not\nstop the purge, and calling again finishes whatever\
        \ was left.\n\nThe email keeps its signup-history row, so registering again\
        \ with the same\naddress earns no second signup grant."
      operationId: delete_current_user_users_me_delete
      parameters:
      - name: dry_run
        in: query
        required: false
        schema:
          type: boolean
          description: 'Defaults to **true**: the call previews and deletes nothing.
            Pass `dry_run=false` to actually delete the account. Check the `done`
            event''s `dry_run` field to see which of the two you got.'
          default: true
          title: Dry Run
        description: 'Defaults to **true**: the call previews and deletes nothing.
          Pass `dry_run=false` to actually delete the account. Check the `done` event''s
          `dry_run` field to see which of the two you got.'
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: "Server-sent events. `progress` events report each stage as\
            \ it happens; the final `done` event is the object below \u2014 a summary\
            \ of what was deleted, or, on a dry run, a `preview` of what would be."
          content:
            text/event-stream:
              schema:
                type: string
                $ref: '#/components/schemas/DeleteAccountSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/check_coupons:
    get:
      tags:
      - accepts-api-key
      summary: Check Coupons
      operationId: check_coupons_users_check_coupons_get
      parameters:
      - name: coupon_code
        in: query
        required: true
        schema:
          type: string
          description: Stripe promotion code to validate.
          title: Coupon Code
        description: Stripe promotion code to validate.
      - name: currency
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Lowercase ISO currency the prices are shown in (the checkout
            `currency`). An amount discount is then described in it, and a coupon
            that can't be charged in it comes back invalid.
          title: Currency
        description: Lowercase ISO currency the prices are shown in (the checkout
          `currency`). An amount discount is then described in it, and a coupon that
          can't be charged in it comes back invalid.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CouponCheckResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/multipart/complete:
    post:
      tags:
      - accepts-api-key
      summary: Complete Multipart Asset Upload
      description: Complete a multipart upload. Client must supply ETags returned
        from each part upload.
      operationId: complete_multipart_asset_upload_users_assets_multipart_complete_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MultipartCompleteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/multipart/part_urls:
    post:
      tags:
      - accepts-api-key
      summary: Create Multipart Part Urls
      description: 'Presign fresh part URLs for an in-flight multipart upload.


        Called as the upload progresses, so a part is always sent with a URL minted

        moments before, and a part rejected with 403 can be retried with a new one.'
      operationId: create_multipart_part_urls_users_assets_multipart_part_urls_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MultipartPartUrlsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MultipartPartUrlsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/multipart/abort:
    post:
      tags:
      - accepts-api-key
      summary: Abort Multipart Asset Upload
      operationId: abort_multipart_asset_upload_users_assets_multipart_abort_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MultipartAbortRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/{asset_id}/cancel_upload:
    post:
      tags:
      - accepts-api-key
      summary: Cancel Asset Upload
      description: "Cancel an asset's unfinished upload and delete the asset.\n\n\
        Unlike ``/assets/multipart/abort`` this needs only the asset id, so it also\n\
        works from a client that did not start the upload or no longer has its\nmultipart\
        \ upload id \u2014 the usual case for an upload whose tab was closed.\nThe\
        \ credits the upload reserved go back to whoever started it. Requires\nWRITE\
        \ on the asset; 409 once the upload has finished."
      operationId: cancel_asset_upload_users_assets__asset_id__cancel_upload_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/uploads:
    post:
      tags:
      - accepts-api-key
      summary: Create Uploads
      description: 'Start uploading assets.


        A single-part asset gets its ``presigned_put_url``. A multipart asset gets

        its ``multipart_upload_id``, part size and part count but no part URLs:

        fetch each part''s URL from ``/assets/multipart/part_urls`` just before

        sending that part, and a fresh one for a retry. Part URLs are signed with

        temporary credentials, so one minted long before use can have expired.'
      operationId: create_uploads_users_assets_uploads_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/AssetUploadRequest'
              title: Assets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AssetUploadResponse'
                title: Response Create Uploads Users Assets Uploads Post
        '403':
          description: The account's email is not verified yet, so it cannot upload
            files. Nothing was created. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/upload_urls:
    post:
      tags:
      - accepts-api-key
      summary: Create Upload Urls
      description: 'Deprecated: use ``/assets/uploads``.


        Presigns every part of a multipart upload up front. Those URLs are signed

        with temporary credentials and can expire before a large upload reaches

        its last parts, which S3 then rejects with 403.'
      operationId: create_upload_urls_users_assets_upload_urls_post
      deprecated: true
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/AssetUploadRequest'
              title: Assets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AssetUploadResponse'
                title: Response Create Upload Urls Users Assets Upload Urls Post
        '403':
          description: The account's email is not verified yet, so it cannot upload
            files. Nothing was created. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/preprocess:
    post:
      tags:
      - accepts-api-key
      summary: Process Assets
      operationId: process_assets_users_assets_preprocess_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProcessAssetsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RequestTaskResponse'
                title: Response Process Assets Users Assets Preprocess Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/tasks/{task_id}:
    get:
      tags:
      - accepts-api-key
      summary: Get User Task
      operationId: get_user_task_users_tasks__task_id__get
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          title: Task Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/PendingTaskResponse'
                - $ref: '#/components/schemas/CompleteTaskResponse'
                - $ref: '#/components/schemas/FailedTaskResponse'
                title: Response Get User Task Users Tasks  Task Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - accepts-api-key
      summary: Cancel User Task
      operationId: cancel_user_task_users_tasks__task_id__delete
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          title: Task Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/tasks:
    get:
      tags:
      - accepts-api-key
      summary: Get Tasks
      description: "Get pending tasks and recently finished tasks for the user.\n\n\
        Args:\n    finish_before_seconds: Number of seconds to look back for finished\
        \ tasks. Default is 300 (5 minutes)."
      operationId: get_tasks_users_tasks_get
      parameters:
      - name: finish_before_seconds
        in: query
        required: false
        schema:
          type: integer
          default: 300
          title: Finish Before Seconds
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TaskResponse'
                title: Response Get Tasks Users Tasks Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/{asset_id}/renditions:
    post:
      tags:
      - accepts-api-key
      summary: Start Rendition Upload
      description: 'Start uploading an original or a proxy into an existing asset.


        PUT the file to ``presigned_put_url`` (or upload its parts), then call

        ``/renditions/{rendition_upload_id}/complete``. Requires WRITE on the

        asset. One upload at a time per asset.'
      operationId: start_rendition_upload_users_assets__asset_id__renditions_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetRenditionUploadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetRenditionUploadResponse'
        '403':
          description: The account's email is not verified yet, so it cannot upload
            files. Nothing was created. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/{asset_id}/renditions/{rendition_upload_id}/part_urls:
    post:
      tags:
      - accepts-api-key
      summary: Create Rendition Upload Part Urls
      description: Presign part URLs for a multipart rendition upload, as it progresses.
      operationId: create_rendition_upload_part_urls_users_assets__asset_id__renditions__rendition_upload_id__part_urls_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: rendition_upload_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Rendition Upload Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RenditionUploadPartUrlsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MultipartPartUrlsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/{asset_id}/renditions/{rendition_upload_id}/complete:
    post:
      tags:
      - accepts-api-key
      summary: Complete Rendition Upload
      description: 'Put an uploaded original or proxy in place, then process the asset.


        An original makes a hybrid asset an ordinary one: it is processed in full,

        and the desktop proxy stays as a playback copy. A proxy is only probed.

        The file must be the asset''s media: its duration within half a second

        and its picture''s aspect ratio within 1% of the file Tellers holds now,

        turned the same way, and most of a few frames alike.

        Otherwise 422, and the upload ends: the file is deleted, the fee given

        back, the asset left as it was.'
      operationId: complete_rendition_upload_users_assets__asset_id__renditions__rendition_upload_id__complete_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: rendition_upload_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Rendition Upload Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RenditionUploadCompleteRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /users/assets/{asset_id}/renditions/{rendition_upload_id}/abort:
    post:
      tags:
      - accepts-api-key
      summary: Abort Rendition Upload
      description: 'Give up an upload into an asset: its fee comes back, the asset
        is kept.'
      operationId: abort_rendition_upload_users_assets__asset_id__renditions__rendition_upload_id__abort_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: rendition_upload_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Rendition Upload Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/models:
    get:
      tags:
      - accepts-api-key
      summary: List Capabilities
      description: 'Describe every `/tools/*` capability and the options each accepts.


        Models switched off for the caller are left out.'
      operationId: list_capabilities_tools_models_get
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolsCapabilities'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/generate/video:
    post:
      tags:
      - accepts-api-key
      summary: Generate Video
      operationId: generate_video_tools_generate_video_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateVideoRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateVideoResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '413':
          description: The account is already using all the storage its plan allows,
            and a generation would add another file. Nothing was charged and no provider
            was called. Delete files or move to a plan with more storage; `GET /users/me`
            reports both the usage and the quota.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/generate/image:
    post:
      tags:
      - accepts-api-key
      summary: Generate Image
      operationId: generate_image_tools_generate_image_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateImageRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateImageResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '413':
          description: The account is already using all the storage its plan allows,
            and a generation would add another file. Nothing was charged and no provider
            was called. Delete files or move to a plan with more storage; `GET /users/me`
            reports both the usage and the quota.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/generate/audio:
    post:
      tags:
      - accepts-api-key
      summary: Generate Audio
      operationId: generate_audio_tools_generate_audio_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateAudioRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateAudioResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '413':
          description: The account is already using all the storage its plan allows,
            and a generation would add another file. Nothing was charged and no provider
            was called. Delete files or move to a plan with more storage; `GET /users/me`
            reports both the usage and the quota.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/generate/tts:
    post:
      tags:
      - accepts-api-key
      summary: Generate Tts
      operationId: generate_tts_tools_generate_tts_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateTtsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTtsResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '413':
          description: The account is already using all the storage its plan allows,
            and a generation would add another file. Nothing was charged and no provider
            was called. Delete files or move to a plan with more storage; `GET /users/me`
            reports both the usage and the quota.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/search/stock:
    post:
      tags:
      - accepts-api-key
      summary: Search Stock
      operationId: search_stock_tools_search_stock_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchStockRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchStockResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/search/social-videos:
    post:
      tags:
      - accepts-api-key
      summary: Search Social Videos
      operationId: search_social_videos_tools_search_social_videos_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchSocialVideosInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchSocialVideosOutput'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/search/assets:
    post:
      tags:
      - accepts-api-key
      summary: Search Assets
      operationId: search_assets_tools_search_assets_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAssetsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAssetsResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/search/custom-agents:
    post:
      tags:
      - accepts-api-key
      summary: Search Custom Agents
      operationId: search_custom_agents_tools_search_custom_agents_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchCustomAgentsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchCustomAgentsResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /tools/search/voices:
    post:
      tags:
      - accepts-api-key
      summary: Search Voices
      operationId: search_voices_tools_search_voices_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchVoicesRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchVoicesResponse'
        '402':
          description: Not enough Tellers tokens to run this tool. The call was refused
            before the tool ran, so nothing was charged. Buy more tokens or wait for
            the next subscription grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolErrorBody'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /video/description/{source_file_id}:
    post:
      tags:
      - accepts-api-key
      summary: Request Description
      description: "Run the description (Gemini analysis) task on an asset, or on\
        \ a folder.\n\nRequires WRITE access on the asset or admin.\n\nFor a single\
        \ asset, ``needs_downscale`` reports whether a player/Gemini-\ncompatible\
        \ video rendition is missing. When it is, we encode a compatible\nproxy first\
        \ and chain the description task after it (the downscale's\n``link`` callback),\
        \ so Gemini only runs once a usable rendition exists. The\nreturned ``task_id``\
        \ always tracks the description task, so callers poll the\nsame id in both\
        \ cases.\n\nPointed at a folder, it queues a walk of that folder instead and\
        \ returns as\nsoon as the walk is queued: ``task_id`` then tracks the fan-out,\
        \ which\ndispatches one description task per asset \u2014 each exactly as\
        \ it would be\ndispatched on its own, proxy encode included \u2014 and ``needs_downscale``\
        \ is\nfalse, since which assets need one is only known once the walk runs.\
        \ The\nfolder is walked recursively; assets the caller cannot write, and assets\n\
        whose media is not uploaded, are skipped. There is no limit on its size, and\n\
        every dispatched asset is billed \u2014 the preflight route reports how many\
        \ that\nwill be before you commit to it.\n\nAn optional body forces the configuration\
        \ to analyse under, so a one-off run\ndoes not need a tellers-config committed\
        \ to the folder tree first. It\nreplaces what the tree resolves rather than\
        \ merging over it. Every entity id\nin it is checked against the caller before\
        \ anything is dispatched, and the\nwhole request is refused if one is not\
        \ theirs. The same body on the preflight\nroute shows the resulting config\
        \ first."
      operationId: request_description_video_description__source_file_id__post
      parameters:
      - name: source_file_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source File Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/AnalysisConfigOverrideRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateDescriptionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /video/transcript/{source_file_id}:
    post:
      tags:
      - accepts-api-key
      summary: Request Transcript
      description: "Generate a transcript for an asset, or for every asset in a folder.\n\
        \nRequires WRITE access on the asset or admin. The task no-ops when a\ntranscript\
        \ was already generated.\n\nFor a single asset, rejects types that cannot\
        \ be transcribed with a 400.\nPointed at a folder, it queues a walk of that\
        \ folder instead and returns as\nsoon as the walk is queued: ``task_id`` then\
        \ tracks the fan-out, which\ndispatches one transcript task per asset. Types\
        \ that cannot be transcribed\nare skipped there rather than rejected \u2014\
        \ a mixed folder is the normal case \u2014\nas are assets the caller cannot\
        \ write and assets whose media is not\nuploaded. The preflight route reports\
        \ how many assets a folder would\ndispatch before you commit to it.\n\nUnlike\
        \ the description route this takes no config override: speech-to-text\nreads\
        \ none of the tellers-config. One sent here is refused with a 400 rather\n\
        than accepted and ignored, so a caller cannot believe a config applied to\
        \ a\ntranscript when nothing read it."
      operationId: request_transcript_video_transcript__source_file_id__post
      parameters:
      - name: source_file_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source File Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/AnalysisConfigOverrideRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTranscriptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /video/analysis-preflight/{source_file_id}:
    post:
      tags:
      - accepts-api-key
      summary: Analysis Preflight
      description: "Report what analysing this asset would do, without dispatching\
        \ anything.\n\nThe dry run for the two routes above, and it takes what they\
        \ take: a file or\na folder. ``description_asset_count`` and ``transcript_asset_count``\
        \ are how\nmany assets each would dispatch \u2014 0 or 1 for a file, the whole\
        \ subtree for a\nfolder \u2014 counted through the very same path, permission,\
        \ type and\nupload-status filters the walk uses, so the number is what will\
        \ actually\nrun rather than an estimate.\n\n``config`` is the tellers-config\
        \ the dispatched tasks will read, resolved at\nthis asset's own path. It is\
        \ a complete ``TellersConfigFile`` \u2014 the same\nobject ``GET /asset/tellers-config/{asset_id}``\
        \ returns \u2014 with the merged\nanalysis settings and entity ids in it rather\
        \ than beside it, so reading\n``config.analysis`` gives what will actually\
        \ apply. ``config_assets`` lists\nthe config files that contributed, nearest\
        \ last.\n\nFor a folder the counts cover the whole subtree while ``config``\
        \ is what a\nfile sitting directly in it resolves. ``overriding_config_assets``\
        \ lists the\ntellers-configs nested deeper that make those two disagree: assets\
        \ under one\nof those resolve it instead, so while this is non-empty the reported\
        \ config\ndoes not describe everything counted. It is capped, and\n``overriding_config_assets_truncated``\
        \ says when there were more.\n\nAn optional body forces a configuration, and\
        \ ``config`` then reports what\nthat leaves in force \u2014 through ``apply_config_override``,\
        \ the same function\nthe analysis itself applies it with, so what this shows\
        \ is what would run.\nSince an override replaces the folder tree outright,\
        \ this is also how to see\nwhat a given body drops: ``config_assets`` comes\
        \ back empty, and any entity\nthe tree contributed is gone unless the body\
        \ names it again. Its entity ids\nare validated exactly as the run routes\
        \ validate them, which makes this the\nway to find out whether an override\
        \ will be accepted without spending\nanything on it.\n\nIt is a POST because\
        \ of that body, not because it changes anything: it\ndispatches nothing and\
        \ bills nothing.\n\nRequires WRITE access, like the routes it previews: a\
        \ folder's counts only\ninclude assets the caller can write, so the same call\
        \ by two people can\nlegitimately return different numbers."
      operationId: analysis_preflight_video_analysis_preflight__source_file_id__post
      parameters:
      - name: source_file_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source File Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/AnalysisConfigOverrideRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisPreflightResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/shared_with_me:
    get:
      tags:
      - accepts-api-key
      summary: List Shared With Me
      description: 'List the files and folders other people shared with you, folders
        first.


        Without ``folder_id``: everything shared with you or with one of your

        groups that you do not own, except what sits inside a folder that is

        itself shared with you. With ``folder_id``: that folder''s contents. Rows

        carry the owner''s path in ``file_name``. Page with ``next_cursor``.'
      operationId: list_shared_with_me_asset_shared_with_me_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          exclusiveMinimum: 0
          default: 50
          title: Limit
      - name: folder_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: 'A folder shared with you, or inside one: list its contents.
            Leave out to list what was shared with you.'
          title: Folder Id
        description: 'A folder shared with you, or inside one: list its contents.
          Leave out to list what was shared with you.'
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SharedWithMeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/visibility:
    put:
      tags:
      - accepts-api-key
      summary: Set Asset Visibility
      description: Set visibility (is_public_read) for a single asset (SSE). WRITE
        required.
      operationId: set_asset_visibility_asset__asset_id__visibility_put
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetVisibilityRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/comments:
    get:
      tags:
      - accepts-api-key
      summary: List Asset Comments
      description: The comments on an asset, oldest first. Needs READ on the asset.
      operationId: list_asset_comments_asset__asset_id__comments_get
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AssetComment'
                title: Response List Asset Comments Asset  Asset Id  Comments Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - accepts-api-key
      summary: Add Asset Comment
      description: Add a comment to an asset. Needs READ on the asset.
      operationId: add_asset_comment_asset__asset_id__comments_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetCommentCreateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetComment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/comments/{comment_id}:
    patch:
      tags:
      - accepts-api-key
      summary: Update Asset Comment
      description: Change the text and/or timecode of one of your comments.
      operationId: update_asset_comment_asset__asset_id__comments__comment_id__patch
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: comment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Comment Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetCommentUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetComment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - accepts-api-key
      summary: Delete Asset Comment
      description: 'Remove a comment: yours, or any on an asset you are ADMIN of.'
      operationId: delete_asset_comment_asset__asset_id__comments__comment_id__delete
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: comment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Comment Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/most_recent:
    get:
      tags:
      - accepts-api-key
      summary: Get Most Recent Files
      description: 'Return the most recently added file(s) the user has read access
        to.

        Uses the user''s own library unless group_id is set.

        With group_id, uses what that group was given (the user must be a member).

        after: only files with last_edit > after (newer).

        before: only files with last_edit < before (older); use the smallest last_edit
        from a previous page to get the next page.

        filetype: only files with the given file type(s).'
      operationId: get_most_recent_files_asset_most_recent_get
      parameters:
      - name: path
        in: query
        required: false
        schema:
          type: string
          default: /
          title: Path
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          exclusiveMinimum: 0
          default: 1
          title: Limit
      - name: group_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Group Id
      - name: before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Before
      - name: after
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: After
      - name: filetype
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              $ref: '#/components/schemas/FileType'
          - type: 'null'
          title: Filetype
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FileReference'
                title: Response Get Most Recent Files Asset Most Recent Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/folder:
    post:
      tags:
      - accepts-api-key
      summary: Create Folder
      description: 'Create a folder. Either at a path (body.path) or under a parent
        folder (body.parent_asset_id + body.name).

        Path-based: ensures folder and ancestors exist for the user''s default group.

        Parent-based: parent must be a folder the user has WRITE access to.

        Callable with API key (X-Api-Key header) or Bearer token.'
      operationId: create_folder_asset_folder_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFolderRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFolderResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/download_urls:
    post:
      tags:
      - accepts-api-key
      summary: Get Asset Download Url Batch Json
      description: Return download URL payloads for multiple assets using one shared
        config.
      operationId: get_asset_download_url_batch_json_asset_download_urls_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetDownloadUrlBatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetDownloadUrlBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/file_urls:
    post:
      tags:
      - accepts-api-key
      summary: Get Asset File Url Batch Json
      description: 'Return presigned URLs to the uploaded file of text, PDF, LUT and
        font assets.


        These types have no renditions, so there is no quality or player choice to

        make. Any other type comes back as an error item pointing at

        ``/asset/download_urls``.'
      operationId: get_asset_file_url_batch_json_asset_file_urls_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetFileUrlBatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetFileUrlBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/infos:
    post:
      tags:
      - accepts-api-key
      summary: Get Asset Infos Batch Json
      description: Return minimal source/path/duration info for multiple assets.
      operationId: get_asset_infos_batch_json_asset_infos_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetInfosBatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetInfosBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/description/{description_id}/generation-metadata:
    get:
      tags:
      - accepts-api-key
      summary: Get Asset Description Generation Metadata
      description: Return debug/provenance metadata saved with one generated chunk
        description.
      operationId: get_asset_description_generation_metadata_asset_description__description_id__generation_metadata_get
      parameters:
      - name: description_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Description Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetDescriptionGenerationMetadataResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/duplicate:
    post:
      tags:
      - accepts-api-key
      summary: Duplicate Asset
      description: 'Duplicate an asset into the caller''s library.


        Any asset needs only VIEW, so one shared read-only can be copied. A project

        is copied without its media: the copy''s timeline uses the same assets. Any

        other file (media, stock footage, entity, config) is copied in full, stored

        files and analysis included, as ``name (1).ext`` next to the original when

        the caller can write to its folder, at the library root otherwise or with

        ``to_library_root``. A folder is copied the same way with everything in it;

        the group clips, master clips and still-uploading files inside are left out

        and counted in ``skipped_count``. Group clips, master clips, assets still

        uploading and folders of more than 500 items return 400. A copy whose files
        would not fit

        the caller''s storage returns 413. A missing or inaccessible asset returns

        404.'
      operationId: duplicate_asset_asset__asset_id__duplicate_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: to_library_root
        in: query
        required: false
        schema:
          type: boolean
          description: Put the copy at the top of the caller's own library even when
            they can write to the original's folder ("copy to my account").
          default: false
          title: To Library Root
        description: Put the copy at the top of the caller's own library even when
          they can write to the original's folder ("copy to my account").
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DuplicateAssetResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/description:
    post:
      tags:
      - accepts-api-key
      summary: Create Asset Scene Description
      description: Add one timed scene description and generate its embeddings.
      operationId: create_asset_scene_description_asset__asset_id__description_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetSceneDescriptionCreateRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetSceneDescriptionUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/content:
    put:
      tags:
      - accepts-api-key
      summary: Replace Asset Text Content
      description: 'Replace or patch a text, Markdown or SVG file''s content and reprocess
        it.


        Send `content` to replace the whole body, or `diff` (a unified diff

        against the file as stored) to change part of a long file without

        resending it. Either way the file is written over in place, the way the

        agent''s patch_file tool does, then preprocessing re-runs so the search

        embeddings match the new text and an SVG''s thumbnail matches its new

        markup. There is no size limit. The resulting SVG must be a well-formed

        document with an <svg> root, or the call is refused with 400 and nothing

        is written. A diff whose hunks do not match the stored file is refused

        with 409; a diff that cannot be parsed with 400.'
      operationId: replace_asset_text_content_asset__asset_id__content_put
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetTextContentRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetTextContentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /asset/{asset_id}/description/{description_id}:
    patch:
      tags:
      - accepts-api-key
      summary: Update Asset Scene Description
      description: 'Change the text and/or timing of one scene description and regenerate

        its embeddings.'
      operationId: update_asset_scene_description_asset__asset_id__description__description_id__patch
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: description_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Description Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetSceneDescriptionUpdateRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetSceneDescriptionUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - accepts-api-key
      summary: Delete Asset Scene Description
      description: 'Remove one scene description and rebuild the asset''s aggregate

        embeddings without it.'
      operationId: delete_asset_scene_description_asset__asset_id__description__description_id__delete
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Asset Id
      - name: description_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Description Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetSceneDescriptionUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export_tellers_otio:
    get:
      tags:
      - accepts-api-key
      summary: Export Tellers Otio
      description: "Return project OTIO JSON with clip ``target_url``s, LUT ``cube``\
        \ URLs and uploaded font URLs presigned (\u22651h by default)."
      operationId: export_tellers_otio_project__project_id__export_tellers_otio_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: input_rendition
        in: query
        required: false
        schema:
          enum:
          - 480p
          - 720p
          - 1080p
          - original
          - highest
          - lowest
          type: string
          description: Rendition passed to presign selection (highest player-compatible
            transcodes, etc.).
          default: highest
          title: Input Rendition
        description: Rendition passed to presign selection (highest player-compatible
          transcodes, etc.).
      - name: presign_expires_in
        in: query
        required: false
        schema:
          type: integer
          maximum: 604800
          minimum: 3600
          description: S3 presigned GET lifetime in seconds (minimum 1 hour).
          default: 43200
          title: Presign Expires In
        description: S3 presigned GET lifetime in seconds (minimum 1 hour).
      - name: use_redirect_urls
        in: query
        required: false
        schema:
          type: boolean
          description: When true, write clip target_url as /asset/url/{asset_id} redirect
            links instead of direct presigned URLs.
          default: false
          title: Use Redirect Urls
        description: When true, write clip target_url as /asset/url/{asset_id} redirect
          links instead of direct presigned URLs.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Export Tellers Otio Project  Project Id  Export Tellers
                  Otio Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export_tellers_otio/presign:
    post:
      tags:
      - accepts-api-key
      summary: Presign Export Tellers Otio
      description: "Presign the URLs of the timeline in the body again, as ``export_tellers_otio``\
        \ does.\n\nFor a client export that outlives its presigned URLs: it re-signs\
        \ the\ntimeline it started with, not the project as it is now \u2014 media\
        \ removed\nfrom the project meanwhile is still re-signed, as long as the caller\
        \ can\nstill view the asset. Same rules as ``export_tellers_otio`` otherwise:\
        \ the\ncaller needs view rights on the project, and an asset it cannot view\
        \ keeps\nthe URL it was sent with. Nothing is saved."
      operationId: presign_export_tellers_otio_project__project_id__export_tellers_otio_presign_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: input_rendition
        in: query
        required: false
        schema:
          enum:
          - 480p
          - 720p
          - 1080p
          - original
          - highest
          - lowest
          type: string
          description: Rendition passed to presign selection (highest player-compatible
            transcodes, etc.).
          default: highest
          title: Input Rendition
        description: Rendition passed to presign selection (highest player-compatible
          transcodes, etc.).
      - name: presign_expires_in
        in: query
        required: false
        schema:
          type: integer
          maximum: 604800
          minimum: 3600
          description: S3 presigned GET lifetime in seconds (minimum 1 hour).
          default: 43200
          title: Presign Expires In
        description: S3 presigned GET lifetime in seconds (minimum 1 hour).
      - name: use_redirect_urls
        in: query
        required: false
        schema:
          type: boolean
          description: When true, write clip target_url as /asset/url/{asset_id} redirect
            links instead of direct presigned URLs.
          default: false
          title: Use Redirect Urls
        description: When true, write clip target_url as /asset/url/{asset_id} redirect
          links instead of direct presigned URLs.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              description: A timeline previously returned by export_tellers_otio for
                this project, as the caller kept it.
              title: Otio
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Presign Export Tellers Otio Project  Project Id  Export
                  Tellers Otio Presign Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export/cost:
    get:
      tags:
      - accepts-api-key
      summary: Estimate Export Cost
      description: 'Estimate the token cost of rendering a project''s timeline.


        ``start_time`` / ``end_time`` quote the export of that range only, as

        ``POST /project/{project_id}/export`` takes them (400 on the same ranges

        it refuses). Past exports of other lengths say nothing about a range''s

        price, so a ranged quote comes from the pricing formula on the range''s

        length, which is what the export is charged, rather than from history.

        ``hdr`` quotes an HDR render (400 where the export would refuse it), also

        from the formula: SDR history says nothing about its price.'
      operationId: estimate_export_cost_project__project_id__export_cost_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: rendition
        in: query
        required: true
        schema:
          enum:
          - 480p
          - 720p
          - 1080p
          - 4k
          type: string
          description: The rendition to estimate (for example, 1080p).
          title: Rendition
        description: The rendition to estimate (for example, 1080p).
      - name: start_time
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          description: Timeline time, in seconds, the export starts at. Omit to start
            at the beginning of the timeline.
          title: Start Time
        description: Timeline time, in seconds, the export starts at. Omit to start
          at the beginning of the timeline.
      - name: end_time
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          description: Timeline time, in seconds, the export ends at (excluded). Omit
            to end with the timeline; a time past its end stops there.
          title: End Time
        description: Timeline time, in seconds, the export ends at (excluded). Omit
          to end with the timeline; a time past its end stops there.
      - name: hdr
        in: query
        required: false
        schema:
          type: boolean
          description: 'Quote an HDR export: it takes far longer to render than SDR
            and is priced for it.'
          default: false
          title: Hdr
        description: 'Quote an HDR export: it takes far longer to render than SDR
          and is priced for it.'
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportCostEstimateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export/preflight:
    get:
      tags:
      - accepts-api-key
      summary: Export Preflight
      description: "Check a project's source renditions before starting an export.\n\
        \nAlways reports all four resolutions \u2014 480p, 720p, 1080p and 4k \u2014\
        \ so the id\nis the only thing to pass. Each says whether every asset already\
        \ has the\nrendition the render would read (``has_all_renditions``), which\
        \ assets still\nneed one generated (``state`` ``needs_rendition`` or ``generating``,\
        \ with the\n``suggested_min_dimension`` to downscale to), and whether the\
        \ render would\npull a 2K-or-larger input (``uses_2k_input``) \u2014 the thing\
        \ that makes an\nexport slow even when nothing is missing.\n\nNothing is queued:\
        \ an asset reported as ``needs_rendition`` stays that way\nuntil a downscale\
        \ is asked for. An export started regardless still renders \u2014\n``source_limited``\
        \ assets are upscaled, and ``missing`` ones are left out of\nthe playlist\
        \ entirely, so their clips come out empty."
      operationId: export_preflight_project__project_id__export_preflight_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportPreflightResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export/generate_missing_renditions:
    post:
      tags:
      - accepts-api-key
      summary: Generate Missing Renditions
      description: "Encode an export-compatible master for every clip that lacks one.\n\
        \nCovers the clips ``GET /project/{project_id}/export/preflight`` counts in\n\
        ``renditions_needed_for_optimum_export`` \u2014 those with no export-compatible\n\
        rendition at their own resolution \u2014 dispatching one downscale each, at\
        \ that\nresolution. It is the highest rendition the sources allow, so afterwards\n\
        every export reads the best master there is rather than a small proxy.\n\n\
        Assets with a downscale already running are left alone instead of being\n\
        re-encoded, and an asset the caller cannot write to is skipped so its owner\n\
        is not billed for an encode they did not ask for. Each encode is billed to\n\
        the asset's owner as it runs, the same as ``POST /video/downscale/{id}``;\n\
        the amount reported here is the preflight's estimate of it.\n\nAn asset holds\
        \ one proxy rendition at a time, so a new master replaces the\nsmaller proxy\
        \ that asset had."
      operationId: generate_missing_renditions_project__project_id__export_generate_missing_renditions_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateMissingRenditionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export:
    post:
      tags:
      - accepts-api-key
      summary: Export Project
      description: 'Start async export of project to MP4 at one or more resolutions.
        Creates the export asset

        in the API, then enqueues a task that browser-encodes the highest requested
        resolution.

        Smaller renditions are enqueued as downscaling_task jobs (not chained). The
        export

        appears as a new video asset in the project''s export folder (project name
        + date + .mp4).


        ``track_ids`` renders only those tracks; every track is rendered without it.


        ``start_time`` / ``end_time`` (timeline seconds, either optional) render only

        ``[start_time, end_time)``; the file starts at 0. 400 when either is negative,

        when ``end_time`` is not after ``start_time``, or when ``start_time`` is at
        or

        past the end of the timeline. A long range is rendered in parts cut on whole

        frames, so its start is rounded up to the next 1/30 s.


        ``hdr`` encodes HLG HDR video (VP9 profile 2, 10-bit, BT.2020, in MP4) rather

        than SDR H.264. It is refused (400) with more than one rendition: the smaller

        renditions are made by re-encoding the master, which tone-maps it to SDR H.264,

        so they would not be HDR. Ask for each size as its own HDR export instead.
        It

        is refused at 4k too, and renders far slower than an SDR export (about 40

        times at 1080p).


        Returns task_id and asset_id. Poll GET /users/tasks/{task_id} for completion;
        result includes asset_id.'
      operationId: export_project_project__project_id__export_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: track_ids
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: 'Ids of the timeline tracks to render (repeat the parameter
            for each). Every other track is left out of this export only; the project
            is not changed. A video track carries no sound: its audio sits on its
            own audio track, which is left out unless listed too. Omit to render every
            track.'
          title: Track Ids
        description: 'Ids of the timeline tracks to render (repeat the parameter for
          each). Every other track is left out of this export only; the project is
          not changed. A video track carries no sound: its audio sits on its own audio
          track, which is left out unless listed too. Omit to render every track.'
      - name: start_time
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          description: Timeline time, in seconds, the export starts at. Omit to start
            at the beginning of the timeline.
          title: Start Time
        description: Timeline time, in seconds, the export starts at. Omit to start
          at the beginning of the timeline.
      - name: end_time
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          description: Timeline time, in seconds, the export ends at (excluded). Omit
            to end with the timeline; a time past its end stops there.
          title: End Time
        description: Timeline time, in seconds, the export ends at (excluded). Omit
          to end with the timeline; a time past its end stops there.
      - name: hdr
        in: query
        required: false
        schema:
          type: boolean
          description: Encode the video as HDR (HLG, BT.2020, VP9 10-bit in MP4) instead
            of SDR H.264. Takes a single rendition, at most 1080p. Plays in Chrome,
            Firefox, VLC and YouTube, not in QuickTime.
          default: false
          title: Hdr
        description: Encode the video as HDR (HLG, BT.2020, VP9 10-bit in MP4) instead
          of SDR H.264. Takes a single rendition, at most 1080p. Plays in Chrome,
          Firefox, VLC and YouTube, not in QuickTime.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                enum:
                - 480p
                - 720p
                - 1080p
                - 4k
                type: string
              description: List of resolutions to export (e.g. ["720p", "1080p"])
              title: Renditions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportProjectResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /project/{project_id}/export/audio:
    post:
      tags:
      - accepts-api-key
      summary: Export Project Audio
      description: 'Start async export of the project''s sound alone, mixed to an
        M4A (AAC) file. It

        appears as a new audio asset in the project''s export folder (project name
        + date

        + .m4a). Only audio tracks make sound, so a selection of video tracks alone
        is

        refused, as is a timeline with no audio.


        ``track_ids`` mixes only those tracks; every track is mixed without it.


        ``start_time`` / ``end_time`` (timeline seconds, either optional) mix only

        ``[start_time, end_time)``, refused (400) as for the video export.


        Returns task_id and asset_id. Poll GET /users/tasks/{task_id} for completion;
        result includes asset_id.'
      operationId: export_project_audio_project__project_id__export_audio_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: track_ids
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          description: 'Ids of the timeline tracks to render (repeat the parameter
            for each). Every other track is left out of this export only; the project
            is not changed. A video track carries no sound: its audio sits on its
            own audio track, which is left out unless listed too. Omit to render every
            track.'
          title: Track Ids
        description: 'Ids of the timeline tracks to render (repeat the parameter for
          each). Every other track is left out of this export only; the project is
          not changed. A video track carries no sound: its audio sits on its own audio
          track, which is left out unless listed too. Omit to render every track.'
      - name: start_time
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          description: Timeline time, in seconds, the export starts at. Omit to start
            at the beginning of the timeline.
          title: Start Time
        description: Timeline time, in seconds, the export starts at. Omit to start
          at the beginning of the timeline.
      - name: end_time
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          description: Timeline time, in seconds, the export ends at (excluded). Omit
            to end with the timeline; a time past its end stops there.
          title: End Time
        description: Timeline time, in seconds, the export ends at (excluded). Omit
          to end with the timeline; a time past its end stops there.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportProjectResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /billing/catalog:
    get:
      tags:
      - accepts-api-key
      summary: Get Billing Catalog
      operationId: get_billing_catalog_billing_catalog_get
      parameters:
      - name: If-None-Match
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: If-None-Match
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingCatalog'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/response/{chat_id}:
    delete:
      tags:
      - accepts-api-key
      summary: Cancel Response
      operationId: cancel_response_agent_response__chat_id__delete
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: string
                title: Response Cancel Response Agent Response  Chat Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/messages:
    post:
      tags:
      - accepts-api-key
      summary: Send Agent Message
      description: "Send a message to a chat; the backend decides how it runs.\n\n\
        Nothing is streamed back: the run's events go to the chat's stream, which\n\
        clients watch with ``subscribe_chat`` on the user websocket from\n``stream_cursor``,\
        \ or without a websocket as Server-Sent Events with\n``GET /agent/chat/{chat_id}/stream?after=<stream_cursor>&pending_id=<pending_id>``.\n\
        Clients that only want the outcome poll\n``GET /agent/chat/{chat_id}/result``\
        \ instead.\n\n- Idle chat (or no ``chat_id``, which creates one): a turn starts\
        \ with this\n  message (``mode: started``).\n- Running chat: the message is\
        \ queued (``mode: queued``) and handed to the\n  running turn with the next\
        \ tool results, so it can change course\n  mid-turn. If the turn ends before\
        \ another tool call, the message opens\n  the next turn instead, with its\
        \ own settings. Its\n  ``tellers.user_message`` events say which happened.\n\
        \n``DELETE /agent/response/{chat_id}`` cancels the turn and drops the\nmessages\
        \ still waiting for it."
      operationId: send_agent_message_agent_messages_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentMessageRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentMessageSubmitResponse'
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '402':
          description: The chosen `llm_model` or `priority` needs a higher subscription
            tier (see `subscription_locked` in GET /settings). Nothing was charged.
            `detail.code` is `SUBSCRIPTION_REQUIRED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LlmSubscriptionRequiredErrorBody'
        '429':
          description: Too many messages already wait on this chat.
        '503':
          description: The chat run coordinator is unavailable.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/upgrade_priority:
    post:
      tags:
      - accepts-api-key
      summary: Upgrade Running Turn Priority
      description: 'Move the chat''s running turn from flex to the standard tier.


        The answer to ``tellers.agent.flex_slow``: flex has had no capacity for a

        while, and the user accepts the standard price to get on with it. Applies

        to the turn running now; the next one uses whatever it is sent with.'
      operationId: upgrade_running_turn_priority_agent_chat__chat_id__upgrade_priority_post
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '404':
          description: Chat not found.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/keep_flex:
    post:
      tags:
      - accepts-api-key
      summary: Keep Running Turn On Flex
      description: 'Keep the chat''s running turn on flex for as long as flex needs.


        The refusal of ``tellers.agent.flex_slow``: without it, the turn moves to

        the standard tier once the offer lapses. Applies to the turn running now.'
      operationId: keep_running_turn_on_flex_agent_chat__chat_id__keep_flex_post
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '404':
          description: Chat not found.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/result:
    get:
      tags:
      - accepts-api-key
      summary: Get Chat Result
      description: 'The result of the chat''s last turn: projects and assets it made
        or used,

        and its summary.


        For API clients that send with ``POST /agent/messages`` (with

        ``no_interaction: true`` for a turn that runs to the end on its own) and

        then poll here until ``status`` is no longer ``progressing``. The agent''s

        final message is parsed for the ``Projects:`` / ``Assets generated:`` /

        ``Assets used:`` / ``Summary:`` lines autonomous mode asks it to write.

        Clients that want the turn live follow it on ``/users/ws`` instead, or,

        without a websocket, as Server-Sent Events on

        ``GET /agent/chat/{chat_id}/stream``.'
      operationId: get_chat_result_agent_chat__chat_id__result_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: wait_seconds
        in: query
        required: false
        schema:
          type: integer
          maximum: 60
          minimum: 0
          description: Hold the request up to this long while the turn is still running,
            and answer as soon as it ends. 0 answers at once.
          default: 0
          title: Wait Seconds
        description: Hold the request up to this long while the turn is still running,
          and answer as soon as it ends. 0 answers at once.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponseJsonResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/stream:
    get:
      tags:
      - accepts-api-key
      summary: Stream Chat Turn
      description: 'Follow a chat''s turn live as Server-Sent Events.


        For clients without a websocket (``curl -N``, a browser ``EventSource``,

        an HTTP library): send with ``POST /agent/messages``, then follow here

        from its ``stream_cursor``. Each event is

        ``id: <stream entry id>`` / ``event: <name>`` / ``data: <json>``, the same

        events ``subscribe_chat`` forwards on ``/users/ws``. The response ends

        after the turn''s ``tellers.stream.end``, whose ``reason`` says how it

        ended. When the chat is not running and nothing came after ``after``, that

        end comes at once. ``tellers.keepalive`` events keep an idle connection

        open.


        With ``pending_id``, a message that is dropped before any turn takes it

        ends the stream with its ``tellers.user_message`` (``cancelled`` or

        ``failed``) and a ``tellers.stream.end``.'
      operationId: stream_chat_turn_agent_chat__chat_id__stream_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: after
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Stream entry id to start after: the ``stream_cursor`` that
            ``POST /agent/messages`` returned, or the ``id`` of the last event received.
            Without it, the stream starts at its current end.'
          title: After
        description: 'Stream entry id to start after: the ``stream_cursor`` that ``POST
          /agent/messages`` returned, or the ``id`` of the last event received. Without
          it, the stream starts at its current end.'
      - name: pending_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Follow only the turn that takes this message (the ``pending_id``
            that ``POST /agent/messages`` returned): events of an earlier turn are
            skipped until a ``tellers.user_message`` with this ``pending_id`` says
            ``applied`` or ``started``.'
          title: Pending Id
        description: 'Follow only the turn that takes this message (the ``pending_id``
          that ``POST /agent/messages`` returned): events of an earlier turn are skipped
          until a ``tellers.user_message`` with this ``pending_id`` says ``applied``
          or ``started``.'
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: The turn's events as Server-Sent Events.
          content:
            text/event-stream: {}
        '400':
          description: '``after`` is not a stream entry id.'
        '404':
          description: Chat not found.
        '429':
          description: Too many live streams open for this user.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/use-tool:
    post:
      tags:
      - accepts-api-key
      summary: Use Agent Tool
      operationId: use_agent_tool_agent_use_tool_post
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UseAgentToolRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '403':
          description: The account's email is not verified yet, so it cannot spend
            tokens. Nothing was charged. `detail.code` is `EMAIL_NOT_VERIFIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotVerifiedErrorBody'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chats/list:
    get:
      tags:
      - accepts-api-key
      summary: List Chats
      operationId: list_chats_agent_chats_list_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          exclusiveMinimum: 0
          default: 10
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Before
      - name: after
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: After
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ChatHistoryResponse'
                title: Response List Chats Agent Chats List Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/graph:
    get:
      tags:
      - accepts-api-key
      summary: Get Chat Graph
      description: 'The Connections graph around a chat: the assets its agent read

        (upstream) and created or edited (downstream), then their own links

        ``depth`` levels on. Only what the caller can view is listed or counted.'
      operationId: get_chat_graph_agent_chat__chat_id__graph_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: depth
        in: query
        required: false
        schema:
          type: integer
          maximum: 10
          minimum: 1
          default: 5
          title: Depth
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 50
          minimum: 1
          default: 5
          title: Limit
      - name: direction
        in: query
        required: false
        schema:
          anyOf:
          - enum:
            - upstream
            - downstream
            - associated
            type: string
          - type: 'null'
          description: 'upstream: what the chat read; downstream: what it created
            or edited. Leave out for both.'
          title: Direction
        description: 'upstream: what the chat read; downstream: what it created or
          edited. Leave out for both.'
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: A breadth boundary's cursor, with its direction.
          title: Cursor
        description: A breadth boundary's cursor, with its direction.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionsGraph'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}:
    get:
      tags:
      - accepts-api-key
      summary: Get Chat Info
      operationId: get_chat_info_agent_chat__chat_id__get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - accepts-api-key
      summary: Delete Chat
      operationId: delete_chat_agent_chat__chat_id__delete
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: cancel_running
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Cancel Running
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/sub_chats:
    get:
      tags:
      - accepts-api-key
      summary: List Sub Chats
      description: 'The sub-chats a chat started, in CSV row order, then oldest first.


        Readable by anyone who can read the main chat; each sub-chat can then be

        opened, followed and written in like any chat.'
      operationId: list_sub_chats_agent_chat__chat_id__sub_chats_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: call_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Only the sub-chats this tool call started. Omit for all of
            the chat's sub-chats.
          title: Call Id
        description: Only the sub-chats this tool call started. Omit for all of the
          chat's sub-chats.
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ChatHistoryResponse'
                title: Response List Sub Chats Agent Chat  Chat Id  Sub Chats Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/usage:
    get:
      tags:
      - accepts-api-key
      summary: Get Chat Usage
      description: Return chat-token and per-tool token usage for a chat, and its
        sub-chats' total.
      operationId: get_chat_usage_agent_chat__chat_id__usage_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/read:
    post:
      tags:
      - accepts-api-key
      summary: Mark Chat Read
      description: 'Mark the chat read up to its newest message, for the caller only.


        An admin impersonating the user is only looking, so nothing is recorded.'
      operationId: mark_chat_read_agent_chat__chat_id__read_post
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/rename:
    patch:
      tags:
      - accepts-api-key
      summary: Rename Chat
      operationId: rename_chat_agent_chat__chat_id__rename_patch
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: name
        in: query
        required: true
        schema:
          type: string
          title: Name
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/share:
    get:
      tags:
      - accepts-api-key
      summary: Get Chat Share
      description: 'Who the chat is shared with. Anyone who can read the chat may
        ask;

        ``can_share`` says whether the caller may change it (the owner).'
      operationId: get_chat_share_agent_chat__chat_id__share_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetShareResponseOptimized'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/share/add:
    post:
      tags:
      - accepts-api-key
      summary: Add Chat Share
      description: 'Let a group, or one person by email, view the chat.


        Only the chat''s owner can share it, and a share only ever lets its grantee

        read the chat, never send messages in it. A group must be one the owner

        manages; an email must belong to a Tellers user.'
      operationId: add_chat_share_agent_chat__chat_id__share_add_post
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatShareRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/share/remove:
    post:
      tags:
      - accepts-api-key
      summary: Remove Chat Share
      description: 'Stop sharing the chat with a group or one person.


        The owner removes any share; anyone else can only remove their own, by

        their own email. Removing a share that does not exist does nothing.'
      operationId: remove_chat_share_agent_chat__chat_id__share_remove_post
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatShareRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent/chat/{chat_id}/messages:
    get:
      tags:
      - accepts-api-key
      summary: Get Chat
      description: 'The chat''s messages, newest first.


        Fetching the newest page (no ``offset``, no ``before``) marks the chat read

        up to the newest message returned, unless an admin is impersonating.'
      operationId: get_chat_agent_chat__chat_id__messages_get
      parameters:
      - name: chat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Chat Id
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          exclusiveMinimum: 0
          default: 20
          title: Limit
      - name: before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Before
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  anyOf:
                  - $ref: '#/components/schemas/ChatMessageUserResponse'
                  - $ref: '#/components/schemas/ChatMessageAgentResponse'
                title: Response Get Chat Agent Chat  Chat Id  Messages Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /settings:
    get:
      tags:
      - accepts-api-key
      summary: Get Settings
      operationId: get_settings_settings_get
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppSettings'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /task/{task_id}:
    get:
      tags:
      - accepts-api-key
      summary: Get Task
      operationId: get_task_task__task_id__get
      deprecated: true
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          title: Task Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/PendingTaskResponse'
                - $ref: '#/components/schemas/CompleteTaskResponse'
                - $ref: '#/components/schemas/FailedTaskResponse'
                title: Response Get Task Task  Task Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - accepts-api-key
      summary: Delete Task
      operationId: delete_task_task__task_id__delete
      deprecated: true
      parameters:
      - name: task_id
        in: path
        required: true
        schema:
          type: string
          title: Task Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentAssetItem:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
          description: 'Resolved from DB: e.g. ''project'', ''video'', ''image'',
            ''audio'', or ''unknown''.'
      type: object
      required:
      - id
      - type
      title: AgentAssetItem
      description: Single asset/project reference with type resolved from DB.
    AgentMessageRequest:
      properties:
        message:
          type: string
          title: Message
          description: The message to send to the agent
        chat_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Chat Id
          description: Optional chat ID for conversation tracking
        previous_response_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Previous Response Id
          description: The ID of the previous response to the model. Use this to create
            multi-turn conversations.
        llm_verbosity:
          type: string
          enum:
          - low
          - medium
          - high
          title: Llm Verbosity
          description: 'Verbosity for this message: higher values yield longer, more
            detailed responses. Use this to set the verbosity. Defaults to the default
            mode''s verbosity. A value the chosen model does not advertise in `available_llm_models`
            is replaced by that model''s standard verbosity.'
          default: low
        llm_reasoning_effort:
          anyOf:
          - type: string
            enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
          - type: 'null'
          title: Llm Reasoning Effort
          description: 'Reasoning effort for this message: higher values yield more
            precise but slower responses. Use this to set the effort. Defaults to
            the default mode''s effort. A value the chosen model does not advertise
            in `available_llm_models` is replaced by that model''s standard effort.'
          default: high
        priority:
          anyOf:
          - type: string
            enum:
            - low
            - default
            - high
            - ultra
          - type: 'null'
          title: Priority
          description: 'Priority level for the response: ''low'' (cheaper/slower),
            ''default'' (standard), ''high'' (premium/low-latency), or ''ultra'' (OpenAI
            Ultrafast: several times faster output at 1.5-3x the ''high'' price, depending
            on the model). Only levels in the chosen model''s `available_priorities`
            (see GET /) take effect; others fall back to ''default''.'
          default: default
        context:
          anyOf:
          - $ref: '#/components/schemas/AppContext'
          - type: 'null'
          description: The app context when the response is sent.
        llm_model:
          type: string
          enum:
          - gpt-6.2-astra
          - gpt-6.2-sol
          - gpt-6-astra
          - gpt-6.1-sol
          - gpt-6.1-terra
          - gpt-6-sol
          - gpt-6-luna
          - gpt-5.6-sol
          - gpt-5.6-terra
          - gpt-5.6-luna
          - gpt-5.5-2026-04-23
          - gpt-5.5-pro-2026-04-23
          - gpt-5.4-pro-2026-03-05
          - gpt-5.4
          - gpt-5.4-mini
          - gpt-5.3-codex
          - gpt-5.2-2025-12-11
          - gpt-5-mini-2025-08-07
          - gpt-5-nano
          title: Llm Model
          description: The model to use to generate the response.
          default: gpt-6.1-terra
        tools:
          items:
            type: string
          type: array
          title: Tools
          description: The tools to use to generate the response. Defaults to the
            same as GET /settings (AVAILABLE_AGENT_TOOLS if set, else all tools).
        custom_agent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Custom Agent Id
          description: The ID of the custom agent to use to generate the response.
            If not provided, the default custom agent will be used.
        parallel_tool_calls:
          type: boolean
          title: Parallel Tool Calls
          description: Whether to allow parallel tool calls. Defaults to true. If
            True, the tool calls will be executed in parallel. If False, the tool
            calls will be executed sequentially.
          default: true
        compaction:
          type: boolean
          title: Compaction
          description: Whether to enable automatic context cleanup when the selected
            model supports it. This keeps long conversations manageable.
          default: true
        prefer_compaction:
          anyOf:
          - type: integer
            minimum: 20000.0
          - type: 'null'
          title: Prefer Compaction
          description: 'Preferred input-token size to compact the conversation at,
            when `compaction` is enabled and the model supports it. A preference,
            not a guarantee: it is capped at the chosen model''s own threshold (`compaction_threshold`
            in `available_llm_models`), which is also what is used when this is unset,
            because past that point compaction is what keeps the request inside the
            context window. Lower it to have long conversations compacted earlier.'
        tool_exposure:
          $ref: '#/components/schemas/ToolExposure'
          description: "How much of each tool the model is shown up front. 'flat_search'\
            \ (default) defers the parameter schemas behind the model's tool_search\
            \ tool but keeps every tool name and description visible, because a deferred\
            \ top-level function still shows both \u2014 roughly 10k tokens up front.\
            \ 'search' groups deferred tools into namespaces, showing only namespace\
            \ descriptions up front. 'flat' defers nothing \u2014 every schema up\
            \ front as a plain function list, no tool_search, roughly 45k tokens \u2014\
            \ and is how you rule out tool discovery entirely when the agent does\
            \ not call a tool you expect it to. Both deferring values fall back to\
            \ 'flat' on models without tool_search."
          default: flat_search
        max_tellers_token:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Max Tellers Token
          description: Maximum cumulative Tellers Token budget for the agent run.
        client_tools:
          anyOf:
          - $ref: '#/components/schemas/ClientToolManifest'
          - type: 'null'
          description: Tools available on the desktop connection that submitted this
            turn.
        no_interaction:
          type: boolean
          title: No Interaction
          description: Whether to disable interaction with the agent. If True, the
            agent will try to generate a response without interacting with the user.
          default: false
      additionalProperties: false
      type: object
      required:
      - message
      title: AgentMessageRequest
    AgentMessageSubmitResponse:
      properties:
        chat_id:
          type: string
          title: Chat Id
        pending_id:
          type: string
          title: Pending Id
          description: Id of this message in the chat's ``tellers.user_message`` events,
            which say when it is applied, started, or dropped.
        mode:
          type: string
          enum:
          - started
          - queued
          title: Mode
          description: '``started``: the chat was idle and a turn started with this
            message. ``queued``: a turn is running; the message is handed to it at
            the next tool call (``tellers.user_message`` status ``applied``), or opens
            the next turn when this one ends first (status ``started``).'
        stream_cursor:
          type: string
          title: Stream Cursor
          description: Stream entry id to follow from (``subscribe_chat`` ``after``
            on the user websocket, or ``after`` on ``GET /agent/chat/{chat_id}/stream``)
            to see every event of this message's run without a gap.
      type: object
      required:
      - chat_id
      - pending_id
      - mode
      - stream_cursor
      title: AgentMessageSubmitResponse
      description: Where a message sent to a chat went.
    AgentResponseJsonResult:
      properties:
        status:
          type: string
          enum:
          - progressing
          - done
          - error
          title: Status
          description: '''progressing'' while the turn runs; ''done'' on success;
            ''error'' when it failed or was cancelled.'
          default: done
        chat_id:
          type: string
          title: Chat Id
          description: Chat ID (set at request start, never empty).
        projects:
          items:
            type: string
          type: array
          title: Projects
        assets:
          items:
            $ref: '#/components/schemas/AgentAssetItem'
          type: array
          title: Assets
          description: Merged assets_generated + assets_used, with type checked against
            DB.
        message:
          type: string
          title: Message
          default: ''
      type: object
      required:
      - chat_id
      title: AgentResponseJsonResult
      description: A chat's last turn, parsed (``GET /agent/chat/{id}/result``).
    AnalysisConfigAsset:
      properties:
        asset_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Asset Id
        in_app_path:
          anyOf:
          - type: string
          - type: 'null'
          title: In App Path
      type: object
      required:
      - asset_id
      - in_app_path
      title: AnalysisConfigAsset
    AnalysisConfigOverrideRequest:
      properties:
        config:
          $ref: '#/components/schemas/TellersConfigFile'
          description: "The configuration to analyse under, as a config file's own\
            \ contents \u2014 not the id of a stored one. It forces itself: it replaces\
            \ whatever the folder tree resolves rather than merging over it, so nothing\
            \ inherited survives, including entities the tree contributed. A field\
            \ left unset falls back to your preferences and then the app defaults,\
            \ exactly as an unset field in a stored config does \u2014 sending only\
            \ a prompt asks for that prompt at default reasoning, not at some folder's\
            \ reasoning. merge_strategy is not read here: it says how a stored config\
            \ combines with its parent folders, and this one has no parents."
      additionalProperties: false
      type: object
      required:
      - config
      title: AnalysisConfigOverrideRequest
      description: A tellers-config supplied with the request instead of read from
        a folder.
    AnalysisPreflightResponse:
      properties:
        asset_id:
          type: string
          title: Asset Id
        in_app_path:
          type: string
          title: In App Path
        is_folder:
          type: boolean
          title: Is Folder
        description_asset_count:
          type: integer
          title: Description Asset Count
        transcript_asset_count:
          type: integer
          title: Transcript Asset Count
        config:
          $ref: '#/components/schemas/TellersConfigFile'
        config_assets:
          items:
            $ref: '#/components/schemas/AnalysisConfigAsset'
          type: array
          title: Config Assets
        overriding_config_assets:
          items:
            $ref: '#/components/schemas/AnalysisConfigAsset'
          type: array
          title: Overriding Config Assets
        overriding_config_assets_truncated:
          type: boolean
          title: Overriding Config Assets Truncated
      type: object
      required:
      - asset_id
      - in_app_path
      - is_folder
      - description_asset_count
      - transcript_asset_count
      - config
      - config_assets
      - overriding_config_assets
      - overriding_config_assets_truncated
      title: AnalysisPreflightResponse
    ApiTokenSpend:
      properties:
        start:
          type: string
          format: date-time
          title: Start
          description: Start of the period (inclusive, UTC).
        end:
          type: string
          format: date-time
          title: End
          description: End of the period (exclusive, UTC).
        granularity:
          type: string
          enum:
          - day
          - week
          - month
          title: Granularity
        timezone:
          type: string
          title: Timezone
        total:
          type: number
          title: Total
          description: 'Net tokens spent: `spent - refunded`.'
        spent:
          type: number
          title: Spent
          description: Tokens charged.
        refunded:
          type: number
          title: Refunded
          description: Tokens given back.
        series:
          items:
            $ref: '#/components/schemas/ApiTokenSpendBucket'
          type: array
          title: Series
          description: Every bucket of the period, oldest first, zeros included.
        by_category:
          items:
            $ref: '#/components/schemas/ApiTokenSpendGroup'
          type: array
          title: By Category
          description: Net spend per category, largest first.
        by_source:
          items:
            $ref: '#/components/schemas/ApiTokenSpendGroup'
          type: array
          title: By Source
          description: Net spend per category and source, largest first.
        items:
          items:
            $ref: '#/components/schemas/ApiTokenSpendItem'
          type: array
          title: Items
          description: One page of individual charges and refunds, newest first. Only
            charges since `itemised_since` are listed; older ones still count in the
            totals, series and breakdowns.
        item_count:
          type: integer
          title: Item Count
          description: How many listed charges and refunds match, across all pages.
        itemised_since:
          type: string
          format: date-time
          title: Itemised Since
          description: Charges before this time (UTC) are no longer listed in `items`;
            they still count in the totals, summed per hour.
        hourly_since:
          type: string
          format: date-time
          title: Hourly Since
          description: Spend before this time (UTC) is only known per UTC day, so
            a series cut in another timezone places it on the day its UTC day starts
            in.
        daily_since:
          type: string
          format: date-time
          title: Daily Since
          description: Spend before this time (UTC) is only known per UTC month, and
            counts on the first of its month.
      type: object
      required:
      - start
      - end
      - granularity
      - timezone
      - total
      - spent
      - refunded
      - series
      - by_category
      - by_source
      - items
      - item_count
      - itemised_since
      - hourly_since
      - daily_since
      title: ApiTokenSpend
    ApiTokenSpendBucket:
      properties:
        period_start:
          type: string
          format: date-time
          title: Period Start
          description: Start of the day, week (Monday) or month, in the requested
            timezone.
        total:
          type: number
          title: Total
          description: Net tokens spent in the bucket.
      type: object
      required:
      - period_start
      - total
      title: ApiTokenSpendBucket
    ApiTokenSpendGroup:
      properties:
        category:
          $ref: '#/components/schemas/TokenSpendCategory'
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
          description: The tool for `tool`, the model for `assistant`, a sub-kind
            otherwise (`upload`, `downscale`, an export resolution). Null in `by_category`.
        source_display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Display Name
          description: Human-readable tool name, for `tool` rows.
        total:
          type: number
          title: Total
          description: Net tokens spent.
      type: object
      required:
      - category
      - total
      title: ApiTokenSpendGroup
    ApiTokenSpendItem:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When it was charged (UTC).
        amount:
          type: number
          title: Amount
          description: Tokens charged; negative for a refund of an earlier charge.
        category:
          $ref: '#/components/schemas/TokenSpendCategory'
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
        source_display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Display Name
        chat_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Chat Id
        project_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Project Id
        asset_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Asset Id
      type: object
      required:
      - id
      - created_at
      - amount
      - category
      - source
      - source_display_name
      - chat_id
      - project_id
      - asset_id
      title: ApiTokenSpendItem
    ApiUsageBilled:
      properties:
        charged:
          type: number
          title: Charged
          description: Tokens charged.
        refunded:
          type: number
          title: Refunded
          description: Tokens given back.
        net:
          type: number
          title: Net
          description: '`charged - refunded`.'
      type: object
      required:
      - charged
      - refunded
      - net
      title: ApiUsageBilled
    ApiUsageBucket:
      properties:
        period_start:
          type: string
          format: date-time
          title: Period Start
          description: Start of the day, week (Monday) or month, in `timezone`.
        analyse:
          type: number
          title: Analyse
        chat:
          type: number
          title: Chat
        gen_ai:
          type: number
          title: Gen Ai
        export:
          type: number
          title: Export
        other_tools:
          type: number
          title: Other Tools
        charged:
          type: number
          title: Charged
          description: Billed in the bucket.
        refunded:
          type: number
          title: Refunded
          description: Refunded in the bucket.
      type: object
      required:
      - period_start
      - analyse
      - chat
      - gen_ai
      - export
      - other_tools
      - charged
      - refunded
      title: ApiUsageBucket
    ApiUsageByKind:
      properties:
        analyse:
          type: number
          title: Analyse
          description: Processing uploaded media, and the analysis tools.
        chat:
          type: number
          title: Chat
          description: The assistant's own work in chats.
        gen_ai:
          type: number
          title: Gen Ai
          description: Generating and transforming media with AI tools.
        export:
          type: number
          title: Export
          description: Project exports.
        other_tools:
          type: number
          title: Other Tools
          description: Every other paid tool.
        total:
          type: number
          title: Total
      type: object
      required:
      - analyse
      - chat
      - gen_ai
      - export
      - other_tools
      - total
      title: ApiUsageByKind
    ApiUsageChats:
      properties:
        started:
          type: integer
          title: Started
          description: Chats started in the period.
        active:
          type: integer
          title: Active
          description: Chats with any message in the period.
        user_messages:
          type: integer
          title: User Messages
        assistant_tokens:
          type: number
          title: Assistant Tokens
      type: object
      required:
      - started
      - active
      - user_messages
      - assistant_tokens
      title: ApiUsageChats
    ApiUsageDeletedFiles:
      properties:
        kept:
          type: number
          title: Kept
          description: Spent processing files that are still in the library.
        removed:
          type: number
          title: Removed
          description: Spent processing files that have since been deleted.
        removed_jobs:
          type: integer
          title: Removed Jobs
      type: object
      required:
      - kept
      - removed
      - removed_jobs
      title: ApiUsageDeletedFiles
    ApiUsageFiles:
      properties:
        file_type:
          type: string
          title: File Type
        count:
          type: integer
          title: Count
        duration_seconds:
          type: number
          title: Duration Seconds
        original_bytes:
          type: integer
          title: Original Bytes
          description: The files as uploaded.
        copy_bytes:
          type: integer
          title: Copy Bytes
          description: Playback and analysis copies made from them.
      type: object
      required:
      - file_type
      - count
      - duration_seconds
      - original_bytes
      - copy_bytes
      title: ApiUsageFiles
    ApiUsageJob:
      properties:
        label:
          type: string
          title: Label
          description: What the jobs did, for display.
        completed:
          type: integer
          title: Completed
        running:
          type: integer
          title: Running
        failed:
          type: integer
          title: Failed
          description: Failed or cancelled; what they cost is refunded.
        charged:
          type: number
          title: Charged
          description: Charged for all of them, before refunds.
      type: object
      required:
      - label
      - completed
      - running
      - failed
      - charged
      title: ApiUsageJob
    ApiUsageLibrary:
      properties:
        media_files:
          type: integer
          title: Media Files
          description: Videos, master clips, audio files and images.
        by_type:
          items:
            $ref: '#/components/schemas/ApiUsageFiles'
          type: array
          title: By Type
          description: Every file type, folders and projects included.
        storage_bytes:
          type: integer
          title: Storage Bytes
          description: What the storage quota counts.
        storage_quota_gb:
          anyOf:
          - type: integer
          - type: 'null'
          title: Storage Quota Gb
        original_bytes:
          type: integer
          title: Original Bytes
        copy_bytes:
          type: integer
          title: Copy Bytes
      type: object
      required:
      - media_files
      - by_type
      - storage_bytes
      - storage_quota_gb
      - original_bytes
      - copy_bytes
      title: ApiUsageLibrary
    ApiUsageLine:
      properties:
        kind:
          type: string
          enum:
          - analyse
          - chat
          - gen_ai
          - export
          - other_tools
          title: Kind
        label:
          type: string
          title: Label
          description: What the tokens paid for, for display.
        calls:
          anyOf:
          - type: integer
          - type: 'null'
          title: Calls
          description: Calls, for tools; null for processing jobs and the assistant.
        tokens:
          type: number
          title: Tokens
      type: object
      required:
      - kind
      - label
      - tokens
      title: ApiUsageLine
    ApiUsageReport:
      properties:
        start:
          type: string
          format: date-time
          title: Start
          description: Start of the period (inclusive, UTC).
        end:
          type: string
          format: date-time
          title: End
          description: End of the period (exclusive, UTC).
        granularity:
          type: string
          enum:
          - day
          - week
          - month
          title: Granularity
        timezone:
          type: string
          title: Timezone
        spend:
          $ref: '#/components/schemas/ApiUsageByKind'
          description: Tokens spent by kind, from the cost each job, chat and tool
            call recorded. Failed or cancelled jobs are refunded and left out.
        billed:
          $ref: '#/components/schemas/ApiUsageBilled'
          description: What was billed in the period, exactly.
        series:
          items:
            $ref: '#/components/schemas/ApiUsageBucket'
          type: array
          title: Series
          description: Every bucket of the period, oldest first, zeros included.
        breakdown:
          items:
            $ref: '#/components/schemas/ApiUsageLine'
          type: array
          title: Breakdown
          description: The lines behind `spend`, largest first.
        jobs:
          items:
            $ref: '#/components/schemas/ApiUsageJob'
          type: array
          title: Jobs
          description: Processing jobs, costliest first.
        deleted_files_spend:
          $ref: '#/components/schemas/ApiUsageDeletedFiles'
        uploads:
          items:
            $ref: '#/components/schemas/ApiUsageFiles'
          type: array
          title: Uploads
          description: Files added in the period.
        chats:
          $ref: '#/components/schemas/ApiUsageChats'
        library:
          $ref: '#/components/schemas/ApiUsageLibrary'
          description: The library as it is now.
        tokens_left:
          type: number
          title: Tokens Left
          description: Tokens left on grants that have not expired.
      type: object
      required:
      - start
      - end
      - granularity
      - timezone
      - spend
      - billed
      - series
      - breakdown
      - jobs
      - deleted_files_spend
      - uploads
      - chats
      - library
      - tokens_left
      title: ApiUsageReport
    ApiUser:
      properties:
        firebase_uid:
          anyOf:
          - type: string
          - type: 'null'
          title: Firebase Uid
        email:
          type: string
          title: Email
        company:
          anyOf:
          - type: string
          - type: 'null'
          title: Company
        first_name:
          anyOf:
          - type: string
          - type: 'null'
          title: First Name
        job_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Job Title
        last_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Name
        profile_pic:
          anyOf:
          - type: string
          - type: 'null'
          title: Profile Pic
        created_at_str:
          type: string
          title: Created At Str
          description: '``created_at`` as UTC ISO-8601 ending in Z (e.g. for debugging
            / clients).'
        last_seen_at_str:
          type: string
          title: Last Seen At Str
          description: '``last_seen_at`` as UTC ISO-8601 ending in Z.'
        updated_at_str:
          type: string
          title: Updated At Str
          description: '``updated_at`` as UTC ISO-8601 ending in Z.'
        credits:
          type: number
          title: Credits
          description: Spendable balance from grants (`get_token`), not legacy columns.
        storage_quota_gb:
          type: integer
          title: Storage Quota Gb
          description: Total storage quota available to the user in GB.
        storage_used_gb:
          anyOf:
          - type: number
          - type: 'null'
          title: Storage Used Gb
          description: Gigabytes this user's assets and their renditions occupy, counting
            each stored object once and rounded to two decimals. The same unit as
            ``storage_quota_gb``, so the pair reads directly as "3.4 of 5 GB". Null
            when no total has been computed for the account yet. Read from a cache
            refreshed hourly, so it can lag a worker that has just written a proxy.
        subscription:
          anyOf:
          - $ref: '#/components/schemas/ApiUserSubscription'
          - type: 'null'
        role:
          additionalProperties:
            type: boolean
          type: object
          title: Role
          description: Role flags for roles held by the user. Missing roles are omitted.
        user_preferences:
          $ref: '#/components/schemas/UserPreferences'
          description: Persisted user preferences returned with the user profile.
      type: object
      required:
      - firebase_uid
      - email
      - company
      - first_name
      - job_title
      - last_name
      - profile_pic
      - created_at_str
      - last_seen_at_str
      - updated_at_str
      - credits
      - storage_quota_gb
      - subscription
      - user_preferences
      title: ApiUser
    ApiUserSubscription:
      properties:
        type:
          type: string
          enum:
          - Monthly
          - Yearly
          - Enterprise
          title: Type
          description: 'User-facing subscription cadence label. Enterprise is a plan
            set up by the Tellers team, billed outside the app: it unlocks every feature
            and cannot be changed or cancelled from the app.'
        tier:
          $ref: '#/components/schemas/SubscriptionTier'
          description: Subscription tier. Subscriptions that predate tiers are reported
            as basic.
        pricing_tier:
          anyOf:
          - type: string
          - type: 'null'
          title: Pricing Tier
          description: Billing catalog plan `tier_id` the subscription is on (for
            example `monthly` or `pro_yearly`), including existing subscribers on
            retired prices; null when it matches no catalog plan.
        can_configure_tokens:
          type: boolean
          title: Can Configure Tokens
          description: True when the user can buy extra tokens on top of the plan
            (expert only).
        monthly_tokens:
          type: number
          title: Monthly Tokens
          description: Subscription token amount available each month.
        storage_quota_gb:
          type: integer
          title: Storage Quota Gb
          description: Total storage quota available to the user in GB.
        pricing:
          items:
            $ref: '#/components/schemas/ApiUserSubscriptionPricingLine'
          type: array
          title: Pricing
          description: Current Stripe subscription price lines with price id and quantity.
        currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Currency
          description: Lowercase ISO 4217 code the subscription is billed in. Stripe
            can't change it, so plan changes are priced in it. Null for a subscription
            not synced since this was added.
        cancel_at_period_end:
          type: boolean
          title: Cancel At Period End
          description: True when Stripe will cancel the subscription at period end.
          default: false
        cancel_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Cancel At
          description: UTC ISO-8601 time when Stripe will cancel the subscription.
        current_period_end:
          anyOf:
          - type: string
          - type: 'null'
          title: Current Period End
          description: UTC ISO-8601 end of the current subscription period.
        tokens_renew_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Tokens Renew At
          description: 'UTC ISO-8601 time the plan''s monthly tokens are next granted:
            the renewal for a monthly plan, the next monthly drop for a yearly one.
            Null when no further grant is due (e.g. the subscription is set to cancel
            first).'
        latest_payment_issue:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Latest Payment Issue
          description: When set, an invoice needs payment or customer action (e.g.
            3DS). Fields may include invoice_id, invoice_status, hosted_invoice_url,
            customer_action_url.
      type: object
      required:
      - type
      - tier
      - can_configure_tokens
      - monthly_tokens
      - storage_quota_gb
      title: ApiUserSubscription
    ApiUserSubscriptionPricingLine:
      properties:
        id:
          type: string
          title: Id
          description: Stripe price id for this subscription line.
        quantity:
          type: integer
          title: Quantity
          description: Quantity for this Stripe price line.
      type: object
      required:
      - id
      - quantity
      title: ApiUserSubscriptionPricingLine
    AppContext:
      properties:
        current_playback_time:
          anyOf:
          - type: number
          - type: 'null'
          title: Current Playback Time
          description: The current playback time in the project when the response
            is sent.
        on_screen_asset:
          anyOf:
          - type: string
          - type: 'null'
          title: On Screen Asset
          description: The id of the asset on screen when the response is sent.
        on_screen_project:
          anyOf:
          - type: string
          - type: 'null'
          title: On Screen Project
          description: The id of the project on screen when the response is sent.
        selected_clips:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Selected Clips
          description: The ids of the clips selected when the response is sent.
        selected_assets:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Selected Assets
          description: The ids of the assets selected when the response is sent.
        selected_projects:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Selected Projects
          description: The ids of the projects selected when the response is sent.
      additionalProperties: false
      type: object
      title: AppContext
    AppSettings:
      properties:
        maintenance_mode:
          type: boolean
          title: Maintenance Mode
        social_publishing_platforms:
          items:
            $ref: '#/components/schemas/SocialPublishingPlatformSetting'
          type: array
          title: Social Publishing Platforms
        project_aspect_ratios:
          items:
            $ref: '#/components/schemas/AspectRatio'
          type: array
          title: Project Aspect Ratios
        available_agent_tools:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Available Agent Tools
        available_llm_models:
          items:
            $ref: '#/components/schemas/AvailableModel'
          type: array
          title: Available Llm Models
        llm_model_tiers:
          $ref: '#/components/schemas/LlmModelTier'
        presets:
          items:
            $ref: '#/components/schemas/TellersPreset'
          type: array
          title: Presets
        default_preset:
          type: string
          title: Default Preset
          description: 'Name of the preset in `presets` that a request with no LLM
            settings runs under. Seed a fresh chat from this preset rather than hard-coding
            a copy of its values: a copy is what drifts off the default when the preset
            changes.'
        parallel_tool_calls:
          type: boolean
          title: Parallel Tool Calls
        disabled_effects:
          items:
            type: string
          type: array
          title: Disabled Effects
          description: 'Timeline effects the user may not pick, as the agent may not
            add them: an effect name (`Stabilize`) or one parameter of one (`Transform.follow`).
            Leave them out of the effect pickers; one already on a clip or track still
            shows and can be configured, disabled or deleted.'
      type: object
      required:
      - maintenance_mode
      - social_publishing_platforms
      - project_aspect_ratios
      - available_agent_tools
      - available_llm_models
      - llm_model_tiers
      - presets
      - default_preset
      - parallel_tool_calls
      - disabled_effects
      title: AppSettings
    AspectRatio:
      type: string
      enum:
      - '16_9'
      - '9_16'
      - '4_5'
      - '1_1'
      - '2_3'
      - '1.91_1'
      - '1.43_1'
      title: AspectRatio
    AssetAnalysisSettings:
      properties:
        reasoning:
          anyOf:
          - type: string
            enum:
            - low
            - medium
            - high
          - type: 'null'
          title: Reasoning
        fps:
          anyOf:
          - type: number
            maximum: 24.0
            exclusiveMinimum: 0.0
          - type: 'null'
          title: Fps
        entity_quality:
          anyOf:
          - type: string
            enum:
            - low
            - medium
            - high
          - type: 'null'
          title: Entity Quality
        asset_quality:
          anyOf:
          - type: string
            enum:
            - low
            - medium
            - high
          - type: 'null'
          title: Asset Quality
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
        long_video:
          anyOf:
          - $ref: '#/components/schemas/LongVideoAnalysisSettings'
          - type: 'null'
          description: Overrides for describing long videos. The fields above apply
            to short videos, and to long ones when this is disabled.
      additionalProperties: false
      type: object
      title: AssetAnalysisSettings
    AssetComment:
      properties:
        id:
          type: string
          title: Id
        author_id:
          type: string
          title: Author Id
          description: The author's user id.
        author_email:
          anyOf:
          - type: string
          - type: 'null'
          title: Author Email
          description: The author's email; null once their account is gone.
        text:
          type: string
          title: Text
        created_at:
          type: string
          title: Created At
          description: ISO 8601, UTC.
        updated_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Updated At
          description: ISO 8601, UTC; null until the author edits it.
        timecode_seconds:
          anyOf:
          - type: number
          - type: 'null'
          title: Timecode Seconds
          description: Where in the media the comment points, if anywhere.
        is_mine:
          type: boolean
          title: Is Mine
          description: Whether the caller wrote it.
      type: object
      required:
      - id
      - author_id
      - text
      - created_at
      - is_mine
      title: AssetComment
      description: One comment on an asset.
    AssetCommentCreateRequest:
      properties:
        text:
          type: string
          maxLength: 10000
          minLength: 1
          title: Text
        timecode_seconds:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Timecode Seconds
      type: object
      required:
      - text
      title: AssetCommentCreateRequest
    AssetCommentUpdateRequest:
      properties:
        text:
          anyOf:
          - type: string
            maxLength: 10000
            minLength: 1
          - type: 'null'
          title: Text
        timecode_seconds:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Timecode Seconds
      type: object
      title: AssetCommentUpdateRequest
    AssetDescriptionGenerationMetadataResponse:
      properties:
        description_id:
          type: string
          title: Description Id
        asset_id:
          type: string
          title: Asset Id
        start_time_ms:
          type: integer
          title: Start Time Ms
        end_time_ms:
          type: integer
          title: End Time Ms
        generation_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Generation Metadata
      type: object
      required:
      - description_id
      - asset_id
      - start_time_ms
      - end_time_ms
      - generation_metadata
      title: AssetDescriptionGenerationMetadataResponse
    AssetDownloadUrlBatchItem:
      properties:
        asset_id:
          type: string
          title: Asset Id
        error:
          type: boolean
          title: Error
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
        download:
          anyOf:
          - $ref: '#/components/schemas/AssetDownloadUrlResponse'
          - type: 'null'
      type: object
      required:
      - asset_id
      - error
      title: AssetDownloadUrlBatchItem
      description: Resolved download payload for one asset in a batch request.
    AssetDownloadUrlBatchRequest:
      properties:
        asset_ids:
          items:
            type: string
          type: array
          minItems: 1
          title: Asset Ids
          description: Asset IDs to resolve.
        quality:
          type: string
          enum:
          - 480p
          - 720p
          - 1080p
          - original
          - highest
          - lowest
          - thumbnail
          title: Quality
          default: 720p
        player_compatible:
          type: boolean
          title: Player Compatible
          default: true
        frame_time:
          anyOf:
          - type: number
          - type: 'null'
          title: Frame Time
        request_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Request Id
      type: object
      required:
      - asset_ids
      title: AssetDownloadUrlBatchRequest
      description: Request body for resolving multiple asset download URLs.
    AssetDownloadUrlBatchResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AssetDownloadUrlBatchItem'
          type: array
          title: Items
      type: object
      required:
      - items
      title: AssetDownloadUrlBatchResponse
    AssetDownloadUrlResponse:
      properties:
        url:
          type: string
          title: Url
        expiredIn:
          type: integer
          title: Expiredin
          description: 'Seconds the URL is expected to work: matches S3 presign expiry
            when applicable; for Pexels/CDN links this is a recommended refresh interval,
            not a hard protocol expiry.'
        current_time:
          type: string
          format: date-time
          title: Current Time
          description: The current time when the URL was generated
        request_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Request Id
          description: The request ID when the URL was generated
      type: object
      required:
      - url
      - expiredIn
      title: AssetDownloadUrlResponse
      description: Media URL and how long it should remain valid (for refresh / UrlSource
        lifecycle).
    AssetFileUrlBatchItem:
      properties:
        asset_id:
          type: string
          title: Asset Id
        error:
          type: boolean
          title: Error
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
        file:
          anyOf:
          - $ref: '#/components/schemas/AssetFileUrlResponse'
          - type: 'null'
      type: object
      required:
      - asset_id
      - error
      title: AssetFileUrlBatchItem
    AssetFileUrlBatchRequest:
      properties:
        asset_ids:
          items:
            type: string
          type: array
          minItems: 1
          title: Asset Ids
          description: IDs of text, PDF, LUT or font assets to resolve.
      type: object
      required:
      - asset_ids
      title: AssetFileUrlBatchRequest
    AssetFileUrlBatchResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AssetFileUrlBatchItem'
          type: array
          title: Items
      type: object
      required:
      - items
      title: AssetFileUrlBatchResponse
    AssetFileUrlResponse:
      properties:
        url:
          type: string
          title: Url
        expired_in:
          type: integer
          title: Expired In
          description: Seconds the presigned URL stays valid.
        file_type:
          $ref: '#/components/schemas/FileType'
        mime_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Mime Type
        filename:
          type: string
          title: Filename
          description: The asset's file name, for saving the download under.
      type: object
      required:
      - url
      - expired_in
      - file_type
      - filename
      title: AssetFileUrlResponse
      description: Presigned URL to an asset's uploaded file.
    AssetFrameRef:
      properties:
        asset_id:
          type: string
          title: Asset Id
          description: The asset to take the frame from.
        timestamp_seconds:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Timestamp Seconds
          description: Which frame to take, in seconds, when the asset is a video.
            Ignored if `is_last_frame` is true. Defaults to the first frame.
        is_last_frame:
          type: boolean
          title: Is Last Frame
          description: Take the asset's final frame, ignoring `timestamp_seconds`.
          default: false
        crop:
          anyOf:
          - $ref: '#/components/schemas/AssetImageCropRef'
          - type: 'null'
          description: Optional edge insets to crop before sending the frame to a
            model.
      additionalProperties: false
      type: object
      required:
      - asset_id
      title: AssetFrameRef
      description: "A single frame of an asset \u2014 mirrors the tools' ``AssetFrame``."
    AssetImageCropRef:
      properties:
        crop_l:
          anyOf:
          - type: number
            exclusiveMaximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Crop L
        crop_r:
          anyOf:
          - type: number
            exclusiveMaximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Crop R
        crop_t:
          anyOf:
          - type: number
            exclusiveMaximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Crop T
        crop_b:
          anyOf:
          - type: number
            exclusiveMaximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Crop B
      additionalProperties: false
      type: object
      title: AssetImageCropRef
      description: "Optional edge insets \u2014 mirrors the tools' ``AssetImageCrop``."
    AssetInfosBatchItem:
      properties:
        asset_id:
          type: string
          title: Asset Id
        error:
          type: boolean
          title: Error
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
        info:
          anyOf:
          - $ref: '#/components/schemas/AssetMinimalInfoResponse'
          - type: 'null'
      type: object
      required:
      - asset_id
      - error
      title: AssetInfosBatchItem
    AssetInfosBatchRequest:
      properties:
        asset_ids:
          items:
            type: string
          type: array
          minItems: 1
          title: Asset Ids
          description: Asset IDs to fetch minimal info for.
        include_local_original:
          type: boolean
          title: Include Local Original
          description: Also return local_original for hybrid assets, whose original
            stays on one of the user's machines.
          default: false
      type: object
      required:
      - asset_ids
      title: AssetInfosBatchRequest
    AssetInfosBatchResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AssetInfosBatchItem'
          type: array
          title: Items
      type: object
      required:
      - items
      title: AssetInfosBatchResponse
    AssetMinimalInfoResponse:
      properties:
        source_name:
          type: string
          title: Source Name
        path:
          type: string
          title: Path
        duration_second:
          type: number
          title: Duration Second
        file_type:
          $ref: '#/components/schemas/FileType'
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        local_original:
          anyOf:
          - $ref: '#/components/schemas/LocalOriginal'
          - type: 'null'
          description: 'Where the original of a hybrid asset lives: the stored file
            is a proxy and the original is on this machine. Only sent when the request
            sets include_local_original, and only for hybrid assets.'
      type: object
      required:
      - source_name
      - path
      - duration_second
      - file_type
      title: AssetMinimalInfoResponse
    AssetPeriodRef:
      properties:
        asset_id:
          type: string
          title: Asset Id
          description: The asset to take the range from.
        start_time:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Start Time
          description: Range start in seconds. Defaults to 0.
        end_time:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: End Time
          description: Range end in seconds. Ignored if `till_the_end` is true. Defaults
            to the end of the asset.
        till_the_end:
          type: boolean
          title: Till The End
          description: Extend to the end of the asset, ignoring `end_time`.
          default: false
      additionalProperties: false
      type: object
      required:
      - asset_id
      title: AssetPeriodRef
      description: "A time range within an asset \u2014 mirrors the tools' ``AssetPeriod``."
    AssetRenditionUploadKind:
      type: string
      enum:
      - original
      - proxy
      title: AssetRenditionUploadKind
    AssetRenditionUploadRequest:
      properties:
        kind:
          $ref: '#/components/schemas/AssetRenditionUploadKind'
          description: 'original: the full-quality file of a hybrid asset, whose original
            was kept on a computer; the asset then stops being hybrid and is processed
            like any upload. proxy: a smaller copy the desktop app made; it replaces
            the proxy of a hybrid asset, or is added to a video''s playback copies.'
        content_length:
          type: integer
          exclusiveMinimum: 0.0
          title: Content Length
          description: The file's size in bytes.
        source_name:
          anyOf:
          - type: string
            maxLength: 1024
          - type: 'null'
          title: Source Name
          description: The file's name.
        multipart:
          type: boolean
          title: Multipart
          description: If true, start a multipart upload; mint part URLs with /renditions/{rendition_upload_id}/part_urls.
          default: false
        multipart_part_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Multipart Part Size
          description: Optional multipart part size in bytes (min 5 MiB). If omitted,
            the server picks one from content_length.
        local_original:
          anyOf:
          - $ref: '#/components/schemas/LocalOriginal'
          - type: 'null'
          description: 'With kind=proxy on a hybrid asset: where its original now
            is, if it moved. Not allowed with kind=original.'
      type: object
      required:
      - kind
      - content_length
      title: AssetRenditionUploadRequest
    AssetRenditionUploadResponse:
      properties:
        asset_id:
          type: string
          format: uuid
          title: Asset Id
        rendition_upload_id:
          type: string
          format: uuid
          title: Rendition Upload Id
        presigned_put_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Presigned Put Url
        multipart_upload_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Multipart Upload Id
        multipart_part_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Multipart Part Size
        multipart_part_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Multipart Part Count
      type: object
      required:
      - asset_id
      - rendition_upload_id
      title: AssetRenditionUploadResponse
    AssetSceneDescriptionCreateRequest:
      properties:
        start_time_ms:
          type: integer
          minimum: 0.0
          title: Start Time Ms
        end_time_ms:
          type: integer
          exclusiveMinimum: 0.0
          title: End Time Ms
        description:
          type: string
          minLength: 1
          title: Description
      type: object
      required:
      - start_time_ms
      - end_time_ms
      - description
      title: AssetSceneDescriptionCreateRequest
    AssetSceneDescriptionUpdateRequest:
      properties:
        description:
          anyOf:
          - type: string
            minLength: 1
          - type: 'null'
          title: Description
        start_time_ms:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Start Time Ms
        end_time_ms:
          anyOf:
          - type: integer
            exclusiveMinimum: 0.0
          - type: 'null'
          title: End Time Ms
      type: object
      title: AssetSceneDescriptionUpdateRequest
      description: 'Partial update: provide at least one. An omitted bound keeps its
        value.'
    AssetSceneDescriptionUpdateResponse:
      properties:
        description_id:
          type: string
          title: Description Id
        task_id:
          type: string
          title: Task Id
      type: object
      required:
      - description_id
      - task_id
      title: AssetSceneDescriptionUpdateResponse
    AssetSearchResult:
      properties:
        asset_id:
          type: string
          title: Asset Id
        score:
          type: number
          title: Score
        description:
          type: string
          title: Description
        start_time_seconds:
          type: number
          title: Start Time Seconds
        end_time_seconds:
          type: number
          title: End Time Seconds
      additionalProperties: false
      type: object
      required:
      - asset_id
      - score
      - description
      - start_time_seconds
      - end_time_seconds
      title: AssetSearchResult
    AssetShareResponseOptimized:
      properties:
        groups:
          items:
            $ref: '#/components/schemas/GroupShareInfo'
          type: array
          title: Groups
          default: []
        validated_users:
          items:
            $ref: '#/components/schemas/ValidatedUserInfo'
          type: array
          title: Validated Users
          default: []
        pending_invites:
          items:
            $ref: '#/components/schemas/ValidatedUserInfo'
          type: array
          title: Pending Invites
          description: Emails this was shared with before they had an account. Each
            becomes a validated user once someone signs in with it.
        is_public_read:
          type: boolean
          title: Is Public Read
          default: false
        can_share:
          type: boolean
          title: Can Share
          default: false
      type: object
      title: AssetShareResponseOptimized
      description: 'Optimized share config: groups and validated_users with rights,
        plus flags.


        ``can_share`` is whether the caller may manage sharing: ADMIN, or a share

        with ``can_share``.'
    AssetTextContentRequest:
      properties:
        content:
          anyOf:
          - type: string
          - type: 'null'
          title: Content
          description: 'The file''s complete new text, UTF-8: the body of a text or
            Markdown file, or the full markup of an SVG. Replaces the whole body.
            Give this or `diff`, not both.'
        diff:
          anyOf:
          - type: string
          - type: 'null'
          title: Diff
          description: 'A standard unified diff against the file as stored, the format
            `git diff` prints: each hunk starts with its own ''@@ -start,count +start,count
            @@'' line, then a leading space for context, ''-'' to remove, ''+'' to
            add; the ''--- a/file'' and ''+++ b/file'' header lines are optional.
            Hunks are placed by line number and their context must match the file
            exactly, so read the file first. A hunk that does not match is refused
            with 409 and the error says which line missed. For a long file this is
            far smaller than resending the whole body. Give this or `content`, not
            both.'
      additionalProperties: false
      type: object
      title: AssetTextContentRequest
      description: Exactly one of ``content`` or ``diff``.
    AssetTextContentResponse:
      properties:
        asset_id:
          type: string
          title: Asset Id
        byte_size:
          type: integer
          title: Byte Size
      type: object
      required:
      - asset_id
      - byte_size
      title: AssetTextContentResponse
    AssetUploadRequest:
      properties:
        content_length:
          type: integer
          title: Content Length
          description: The content length of the asset in bytes
        upload_id:
          type: string
          title: Upload Id
        source_file:
          $ref: '#/components/schemas/SourceFileInfo'
        file_type:
          $ref: '#/components/schemas/FileType'
          default: video
        parent_asset_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Asset Id
          description: Optional asset_id of a folder to upload into. When set, the
            file's inAppPath is treated as relative to this folder and the user must
            have write access to it.
        multipart:
          type: boolean
          title: Multipart
          description: If true, returns presigned multipart upload URLs instead of
            a single PUT URL.
          default: false
        multipart_part_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Multipart Part Size
          description: 'Optional multipart part size in bytes (min 5 MiB). If omitted,
            the server picks one from content_length: 16 MiB, growing for very large
            files. Read the chosen size from multipart_part_size in the response.'
        delete_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Delete At
          description: 'Makes the asset transient: when it is deleted, as an ISO 8601
            date-time (UTC when no offset is given). From then on it no longer appears
            in search or listings, and it is removed with its files within the hour.
            Must be in the future.'
        local_original:
          anyOf:
          - $ref: '#/components/schemas/LocalOriginal'
          - type: 'null'
          description: 'Set when the uploaded file is a proxy the desktop app made
            and the original stays on one of the user''s machines. The file is then
            only probed when preprocessed: no copies, analysis or transcript are made
            from it. Video, audio and image files only.'
      type: object
      required:
      - content_length
      - upload_id
      - source_file
      title: AssetUploadRequest
    AssetUploadResponse:
      properties:
        upload_id:
          type: string
          title: Upload Id
        asset_id:
          type: string
          format: uuid
          title: Asset Id
        presigned_put_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Presigned Put Url
        presigned_put_urls:
          items:
            type: string
          type: array
          title: Presigned Put Urls
        multipart_upload_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Multipart Upload Id
        multipart_part_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Multipart Part Size
        multipart_part_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Multipart Part Count
      type: object
      required:
      - upload_id
      - asset_id
      title: AssetUploadResponse
    AssetVisibilityRequest:
      properties:
        is_public_read:
          type: boolean
          title: Is Public Read
      type: object
      required:
      - is_public_read
      title: AssetVisibilityRequest
    AudioCapability:
      properties:
        models:
          items:
            $ref: '#/components/schemas/AudioModelCapability'
          type: array
          title: Models
      additionalProperties: false
      type: object
      required:
      - models
      title: AudioCapability
    AudioModelCapability:
      properties:
        id:
          type: string
          title: Id
          description: Value to pass as `model`.
        tool_id:
          type: string
          title: Tool Id
          description: "The agent tool backing this model. Join to `available_agent_tools`\
            \ in GET /settings for its display name, description and pricing \u2014\
            \ kept there rather than duplicated here so there is one source of truth.\
            \ Several models can share a tool."
        required:
          items:
            type: string
          type: array
          title: Required
          description: Request fields this model cannot do without. Everything else
            in the request schema is optional.
        min:
          type: number
          title: Min
          description: Shortest `duration_seconds` accepted, in seconds.
        max:
          type: number
          title: Max
          description: Longest `duration_seconds` accepted, in seconds.
        max_char:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Char
          description: Longest `prompt` accepted, in characters. None = unbounded.
      additionalProperties: false
      type: object
      required:
      - id
      - tool_id
      - required
      - min
      - max
      title: AudioModelCapability
      description: "What one audio model accepts, as published by ``GET /tools/models``.\n\
        \nAudio has no spatial dimensions \u2014 the only per-model constraint is\
        \ the\nduration range, and the two models differ by more than an order of\n\
        magnitude, which a flat request schema cannot express."
    AvailableModel:
      properties:
        name:
          type: string
          title: Name
        codename:
          type: string
          title: Codename
        compatible_models:
          items:
            type: string
          type: array
          title: Compatible Models
        options:
          $ref: '#/components/schemas/TellersAvailableOptions'
        available_priorities:
          items:
            type: string
            enum:
            - low
            - default
            - high
            - ultra
          type: array
          title: Available Priorities
        pricing_level:
          type: integer
          enum:
          - 1
          - 2
          - 3
          - 4
          - 5
          title: Pricing Level
        required_subscription_tier:
          anyOf:
          - $ref: '#/components/schemas/SubscriptionTier'
          - type: 'null'
          description: Lowest subscription tier that can use this model; null for
            all.
        subscription_locked:
          type: boolean
          title: Subscription Locked
          description: 'True when the caller''s plan is below `required_subscription_tier`:
            show the model as an upgrade, a request with it is refused (402).'
          default: false
        priority_required_subscription_tiers:
          additionalProperties:
            $ref: '#/components/schemas/SubscriptionTier'
          propertyNames:
            enum:
            - low
            - default
            - high
            - ultra
          type: object
          title: Priority Required Subscription Tiers
          description: Lowest subscription tier for each of `available_priorities`
            that needs one (e.g. `ultra`); priorities not listed are open to all.
        locked_priorities:
          items:
            type: string
            enum:
            - low
            - default
            - high
            - ultra
          type: array
          title: Locked Priorities
          description: 'Entries of `available_priorities` the caller''s plan cannot
            use: show them as an upgrade, a request with one is refused (402).'
      type: object
      required:
      - name
      - codename
      - compatible_models
      - options
      - available_priorities
      - pricing_level
      title: AvailableModel
    BillingCatalog:
      properties:
        plans:
          items:
            oneOf:
            - $ref: '#/components/schemas/CatalogPlanOneOff'
            - $ref: '#/components/schemas/CatalogPlanSubscription'
            discriminator:
              propertyName: kind
              mapping:
                one_off_tokens: '#/components/schemas/CatalogPlanOneOff'
                subscription: '#/components/schemas/CatalogPlanSubscription'
          type: array
          title: Plans
      additionalProperties: false
      type: object
      required:
      - plans
      title: BillingCatalog
    CancelTaskResponse:
      properties:
        task_id:
          type: string
          title: Task Id
        previous_state:
          $ref: '#/components/schemas/TaskStatus'
        description:
          type: string
          title: Description
      type: object
      required:
      - task_id
      - previous_state
      - description
      title: CancelTaskResponse
    CatalogCurrencyAmount:
      properties:
        currency:
          type: string
          title: Currency
          description: Lowercase ISO currency code.
        unit_amount_cents:
          anyOf:
          - type: number
          - type: 'null'
          title: Unit Amount Cents
          description: Unit price in cents per displayed unit in this currency; null
            for tiered prices (see `tiers`).
        tiers:
          items:
            $ref: '#/components/schemas/CatalogCurrencyTier'
          type: array
          title: Tiers
          description: Quantity bands in this currency (empty unless the price is
            tiered).
        tax_included:
          type: boolean
          title: Tax Included
          description: True when the amount already includes tax (e.g. EUR with VAT);
            false when tax is added at checkout (e.g. USD, CAD).
      additionalProperties: false
      type: object
      required:
      - currency
      - tax_included
      title: CatalogCurrencyAmount
      description: What a Stripe price charges in one currency.
    CatalogCurrencyTier:
      properties:
        min_quantity:
          type: integer
          title: Min Quantity
        max_quantity:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Quantity
        unit_amount_cents:
          type: number
          title: Unit Amount Cents
          description: Unit price in cents per displayed unit for this band.
      additionalProperties: false
      type: object
      required:
      - min_quantity
      - unit_amount_cents
      title: CatalogCurrencyTier
      description: One quantity band of a tiered price, in one currency.
    CatalogFeature:
      properties:
        text:
          type: string
          title: Text
          description: User-facing feature/highlight text.
        icon_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Icon Key
          description: Optional semantic icon key that frontend maps to an icon.
      additionalProperties: false
      type: object
      required:
      - text
      title: CatalogFeature
      description: Frontend-facing feature/highlight with optional semantic icon key.
    CatalogHighlight:
      properties:
        number:
          anyOf:
          - type: number
          - type: 'null'
          title: Number
          description: Optional numeric value to display prominently.
        stripe_price_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Stripe Price Id
          description: Optional Stripe price id used by UI when refreshing highlight
            values.
        text:
          type: string
          title: Text
          description: Label displayed under/next to the number.
      additionalProperties: false
      type: object
      required:
      - text
      title: CatalogHighlight
      description: Frontend-facing compact metric shown as number + label.
    CatalogPlanOneOff:
      properties:
        tier_id:
          type: string
          title: Tier Id
        display_name:
          type: string
          title: Display Name
          description: Human-readable plan name for frontend display.
        subtitle:
          type: string
          title: Subtitle
          description: Optional short subtitle/description displayed under the plan
            name.
          default: ''
        cta_text:
          type: string
          title: Cta Text
          description: Optional call-to-action label shown on the plan button.
          default: ''
        highlights:
          items:
            $ref: '#/components/schemas/CatalogHighlight'
          type: array
          maxItems: 2
          title: Highlights
          description: Up to two compact highlights for frontend display (number +
            text).
        features:
          items:
            $ref: '#/components/schemas/CatalogFeature'
          type: array
          title: Features
          description: Human-readable feature bullets for this plan (frontend display).
        enabled:
          type: boolean
          title: Enabled
          default: true
        currencies:
          items:
            type: string
          type: array
          title: Currencies
          description: Lowercase currencies every price of this plan can be charged
            in; valid values for the checkout `currency` parameter.
        default_items:
          items:
            $ref: '#/components/schemas/PlanLineItem'
          type: array
          title: Default Items
          description: Suggested default cart rows (empty list when not applicable).
        pricing:
          $ref: '#/components/schemas/PlanPricing'
          description: Priced lines used for preview and checkout.
        kind:
          type: string
          const: one_off_tokens
          title: Kind
          default: one_off_tokens
      additionalProperties: false
      type: object
      required:
      - tier_id
      - display_name
      - default_items
      - pricing
      title: CatalogPlanOneOff
      description: Prepaid token pack.
    CatalogPlanSubscription:
      properties:
        tier_id:
          type: string
          title: Tier Id
        display_name:
          type: string
          title: Display Name
          description: Human-readable plan name for frontend display.
        subtitle:
          type: string
          title: Subtitle
          description: Optional short subtitle/description displayed under the plan
            name.
          default: ''
        cta_text:
          type: string
          title: Cta Text
          description: Optional call-to-action label shown on the plan button.
          default: ''
        highlights:
          items:
            $ref: '#/components/schemas/CatalogHighlight'
          type: array
          maxItems: 2
          title: Highlights
          description: Up to two compact highlights for frontend display (number +
            text).
        features:
          items:
            $ref: '#/components/schemas/CatalogFeature'
          type: array
          title: Features
          description: Human-readable feature bullets for this plan (frontend display).
        enabled:
          type: boolean
          title: Enabled
          default: true
        currencies:
          items:
            type: string
          type: array
          title: Currencies
          description: Lowercase currencies every price of this plan can be charged
            in; valid values for the checkout `currency` parameter.
        default_items:
          items:
            $ref: '#/components/schemas/PlanLineItem'
          type: array
          title: Default Items
          description: Suggested default cart rows (empty list when not applicable).
        pricing:
          $ref: '#/components/schemas/PlanPricing'
          description: Priced lines used for preview and checkout.
        kind:
          type: string
          const: subscription
          title: Kind
          default: subscription
        tier:
          $ref: '#/components/schemas/SubscriptionTier'
          description: Subscription tier this plan belongs to.
          default: basic
        legacy_price_ids:
          items:
            type: string
          type: array
          title: Legacy Price Ids
          description: Retired Stripe prices that existing subscribers on this plan
            are still billed on.
        interval:
          anyOf:
          - type: string
            enum:
            - month
            - year
          - type: 'null'
          title: Interval
        interval_upgrade_cta:
          type: string
          title: Interval Upgrade Cta
          description: Optional call-to-action label for switching subscription interval,
            e.g. monthly to yearly.
          default: ''
        quantity_update_cta:
          type: string
          title: Quantity Update Cta
          description: Optional call-to-action label for changing subscription item
            quantities.
          default: ''
      additionalProperties: false
      type: object
      required:
      - tier_id
      - display_name
      - default_items
      - pricing
      title: CatalogPlanSubscription
    CatalogPricingLine:
      properties:
        stripe_price_id:
          type: string
          title: Stripe Price Id
        display_name:
          type: string
          title: Display Name
          description: Human-readable label for this Stripe price line (frontend display).
          default: ''
        unit_amount_cents:
          type: number
          title: Unit Amount Cents
          description: Effective unit price in cents per displayed unit (e.g. per
            token). For Stripe prices configured per pack/group, this is normalized
            using Stripe transform quantity metadata.
          default: 0.0
        min_quantity:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Min Quantity
          description: Checkout minimum quantity for this price (one-off packs).
        max_quantity:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Max Quantity
          description: Checkout maximum quantity for this price (one-off packs).
        tier_pricing_from_stripe:
          type: boolean
          title: Tier Pricing From Stripe
          description: If true, replace this price line with tier bands fetched from
            Stripe (subscription only).
          default: false
        tiers_mode:
          anyOf:
          - type: string
            enum:
            - graduated
            - volume
          - type: 'null'
          title: Tiers Mode
          description: 'For Stripe tiered prices: `graduated` vs `volume` (Stripe
            Price `tiers_mode`). Set on each band when `tier_pricing_from_stripe`
            lines are expanded from Stripe.'
        user_can_modify_at_checkout:
          type: boolean
          title: User Can Modify At Checkout
          description: 'False when the line is fixed: it must be submitted at its
            default quantity (e.g. the plan''s base price). True when the user picks
            the quantity within min_quantity/max_quantity.'
          default: true
        currency_amounts:
          items:
            $ref: '#/components/schemas/CatalogCurrencyAmount'
          type: array
          title: Currency Amounts
          description: The whole Stripe price in each currency it supports (the fields
            above stay in the price's main currency).
      additionalProperties: false
      type: object
      required:
      - stripe_price_id
      title: CatalogPricingLine
      description: One billable Stripe price on the plan.
    ChatHistoryResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        custom_agent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Custom Agent Id
        total_tokens:
          type: number
          title: Total Tokens
        is_running:
          type: boolean
          title: Is Running
        last_read_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Read At
          description: The `created_at` of the newest message the caller has read
            in this chat. Null when the caller has never read it; such a chat counts
            as read.
        is_unread:
          type: boolean
          title: Is Unread
          description: Whether the agent has written a message newer than `last_read_at`.
            The caller's own messages never make a chat unread. Reading the newest
            page of `GET /chat/{chat_id}/messages` or calling `POST /chat/{chat_id}/read`
            clears it.
          default: false
        can_write:
          type: boolean
          title: Can Write
          description: Whether the caller may send messages in the chat, rename it
            or delete it. False when the chat was only shared with them to view.
          default: true
        parent_chat_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Chat Id
          description: 'For a sub-chat, the main chat that started it; null for a
            main chat. Sub-chats are not in `GET /chats/list`: list them with `GET
            /chat/{chat_id}/sub_chats` on their main chat.'
        sub_chat_index:
          anyOf:
          - type: integer
          - type: 'null'
          title: Sub Chat Index
          description: For a sub-chat started from a CSV, the row it works on (0 =
            first row under the header); null otherwise.
        sub_chat_count:
          type: integer
          title: Sub Chat Count
          description: How many sub-chats this chat has started.
          default: 0
        running_sub_chat_count:
          type: integer
          title: Running Sub Chat Count
          description: How many of this chat's sub-chats are running now.
          default: 0
      type: object
      required:
      - id
      - name
      - created_at
      - updated_at
      - custom_agent_id
      - total_tokens
      - is_running
      title: ChatHistoryResponse
    ChatMessageAgentResponse:
      properties:
        type:
          type: string
          const: agent
          title: Type
          default: agent
        id:
          type: string
          title: Id
        agent_message:
          additionalProperties: true
          type: object
          title: Agent Message
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - agent_message
      - created_at
      title: ChatMessageAgentResponse
    ChatMessageUserResponse:
      properties:
        type:
          type: string
          const: user
          title: Type
          default: user
        id:
          type: string
          title: Id
        user_message:
          type: string
          title: User Message
        enabled_tools:
          items:
            type: string
          type: array
          title: Enabled Tools
        verbosity:
          type: string
          title: Verbosity
        reasoning_effort:
          type: string
          title: Reasoning Effort
        pricing_level:
          type: integer
          enum:
          - 1
          - 2
          - 3
          - 4
          - 5
          title: Pricing Level
        llm_model:
          anyOf:
          - type: string
          - type: 'null'
          title: Llm Model
        priority:
          anyOf:
          - type: string
          - type: 'null'
          title: Priority
        parallel_tool_calls:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Parallel Tool Calls
        max_tellers_token:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Tellers Token
        prefer_compaction:
          anyOf:
          - type: integer
          - type: 'null'
          title: Prefer Compaction
          description: The preferred compaction threshold the message was sent with,
            as `prefer_compaction` in the agent message request. Null when it was
            sent without one -- the model's own threshold applied -- and on messages
            written before the settings were recorded at all.
        llm_settings:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Llm Settings
          description: The LLM settings the message was sent with that have no field
            of their own above -- `tool_exposure`, `compaction` and the like -- keyed
            by their name in the agent message request. Restoring the composer means
            the fields above plus this. It holds no value that is already a field,
            so nothing here can disagree with them. Null on messages written before
            the column existed, which ran under whatever these settings defaulted
            to at the time.
        context:
          additionalProperties: true
          type: object
          title: Context
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - user_message
      - enabled_tools
      - verbosity
      - reasoning_effort
      - pricing_level
      - llm_model
      - priority
      - parallel_tool_calls
      - max_tellers_token
      - context
      - created_at
      title: ChatMessageUserResponse
    ChatShareRequest:
      properties:
        group_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Group Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      type: object
      title: ChatShareRequest
      description: 'One grantee of a chat: exactly one of ``group_id`` or ``email``.'
    ChatToolUsage:
      properties:
        tool_name:
          type: string
          title: Tool Name
        calls:
          type: integer
          title: Calls
        tokens_used:
          type: number
          title: Tokens Used
      type: object
      required:
      - tool_name
      - calls
      - tokens_used
      title: ChatToolUsage
    ChatUsageBreakdown:
      properties:
        llm_calls:
          type: integer
          title: Llm Calls
          default: 0
        input_tokens_uncached:
          type: integer
          title: Input Tokens Uncached
          default: 0
        input_tokens_cached:
          type: integer
          title: Input Tokens Cached
          default: 0
        cache_write_tokens:
          type: integer
          title: Cache Write Tokens
          default: 0
        output_tokens:
          type: integer
          title: Output Tokens
          default: 0
        reasoning_tokens:
          type: integer
          title: Reasoning Tokens
          default: 0
        system_prompt_tokens:
          type: integer
          title: System Prompt Tokens
          default: 0
        assistant_prompt_tokens:
          type: integer
          title: Assistant Prompt Tokens
          default: 0
        project_state_tokens:
          type: integer
          title: Project State Tokens
          default: 0
        conversation_history_tokens:
          type: integer
          title: Conversation History Tokens
          default: 0
        user_message_tokens:
          type: integer
          title: User Message Tokens
          default: 0
        tool_result_tokens:
          type: integer
          title: Tool Result Tokens
          default: 0
        tool_schema_tokens:
          type: integer
          title: Tool Schema Tokens
          default: 0
        timeline_mutations:
          type: integer
          title: Timeline Mutations
          default: 0
        llm_calls_per_timeline_mutation:
          anyOf:
          - type: number
          - type: 'null'
          title: Llm Calls Per Timeline Mutation
        complete:
          type: boolean
          title: Complete
          default: true
      type: object
      title: ChatUsageBreakdown
      description: "Where a chat's tokens went, as raw model tokens rather than charges.\n\
        \nThe first four counts come from OpenAI; the ``*_tokens`` counts below them\n\
        are our own tiktoken measurements of the parts we compose the prompt from,\n\
        which is the only way to attribute a cost to tool schemas, project state or\n\
        replayed history \u2014 the API reports the input as one number.\n\n``complete``\
        \ is false when the chat contains calls made before these counts\nwere recorded.\
        \ The numbers are then a floor for the chat, not its total."
    ChatUsageResponse:
      properties:
        chat_id:
          type: string
          title: Chat Id
        chat_tokens_used:
          type: number
          title: Chat Tokens Used
        tools_tokens_used:
          type: number
          title: Tools Tokens Used
        sub_chats_tokens_used:
          type: number
          title: Sub Chats Tokens Used
          description: What this chat's sub-chats spent, agent and tools together.
            Already counted in `total_tokens_used`; `chat_tokens_used`, `tools` and
            `breakdown` cover this chat only.
          default: 0.0
        sub_chat_count:
          type: integer
          title: Sub Chat Count
          description: How many sub-chats this chat has started.
          default: 0
        total_tokens_used:
          type: number
          title: Total Tokens Used
          description: This chat's spend plus its sub-chats'.
        tools:
          items:
            $ref: '#/components/schemas/ChatToolUsage'
          type: array
          title: Tools
        breakdown:
          $ref: '#/components/schemas/ChatUsageBreakdown'
      type: object
      required:
      - chat_id
      - chat_tokens_used
      - tools_tokens_used
      - total_tokens_used
      - tools
      title: ChatUsageResponse
    ClientToolDefinition:
      properties:
        name:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,55}$
          title: Name
        description:
          type: string
          maxLength: 512
          minLength: 1
          title: Description
        parameters:
          additionalProperties: true
          type: object
          title: Parameters
      additionalProperties: false
      type: object
      required:
      - name
      - description
      - parameters
      title: ClientToolDefinition
    ClientToolManifest:
      properties:
        version:
          type: integer
          const: 1
          title: Version
        machine_id:
          type: string
          format: uuid
          title: Machine Id
        request_id:
          type: string
          format: uuid
          title: Request Id
        tools:
          items:
            $ref: '#/components/schemas/ClientToolDefinition'
          type: array
          maxItems: 16
          minItems: 1
          title: Tools
      additionalProperties: false
      type: object
      required:
      - version
      - machine_id
      - request_id
      - tools
      title: ClientToolManifest
    CompleteTaskResponse:
      properties:
        status:
          type: string
          const: COMPLETE
          title: Status
          default: COMPLETE
        result:
          anyOf:
          - {}
          - type: 'null'
          title: Result
      type: object
      required:
      - result
      title: CompleteTaskResponse
    ConnectionsGraph:
      properties:
        root:
          $ref: '#/components/schemas/GraphNode'
        nodes:
          items:
            $ref: '#/components/schemas/GraphNode'
          type: array
          title: Nodes
        edges:
          items:
            $ref: '#/components/schemas/GraphEdge'
          type: array
          title: Edges
        boundaries:
          items:
            $ref: '#/components/schemas/GraphBoundary'
          type: array
          title: Boundaries
      type: object
      required:
      - root
      - nodes
      - edges
      - boundaries
      title: ConnectionsGraph
    CouponCheckDiscount:
      properties:
        percent_off:
          anyOf:
          - type: number
          - type: 'null'
          title: Percent Off
          description: Percent off each eligible line (e.g. 20 for 20%).
        amount_off_cents:
          anyOf:
          - type: integer
          - type: 'null'
          title: Amount Off Cents
          description: Fixed amount off the eligible lines' total, in cents of `currency`.
            Set instead of `percent_off`.
        currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Currency
          description: Lowercase ISO currency of `amount_off_cents`.
        duration:
          anyOf:
          - type: string
            enum:
            - once
            - repeating
            - forever
          - type: 'null'
          title: Duration
          description: 'How many invoices it discounts: the first only, the first
            `duration_in_months` months, or every one.'
        duration_in_months:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration In Months
        applies_to_price_ids:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Applies To Price Ids
          description: Stripe price ids from GET /billing/catalog this coupon discounts;
            null when it discounts every line. An empty list means none of the catalog's
            lines are eligible.
      type: object
      title: CouponCheckDiscount
      description: What a valid coupon takes off, to price it the way checkout will.
    CouponCheckResponse:
      properties:
        coupon_code:
          type: string
          title: Coupon Code
        is_valid:
          type: boolean
          title: Is Valid
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        discount:
          anyOf:
          - $ref: '#/components/schemas/CouponCheckDiscount'
          - type: 'null'
          description: Set when the coupon is valid and its discount is known.
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
          description: UTC time after which the code can no longer be redeemed (the
            earlier of the promotion code's expiry and the coupon's `redeem_by`);
            null when it doesn't expire. Also set, with nothing else, when the code
            has expired. Clients show it in the user's own time zone.
        is_expired:
          type: boolean
          title: Is Expired
          description: True when the code exists but has expired (`expires_at` says
            when); `is_valid` is then false and no other detail is given.
          default: false
      type: object
      required:
      - coupon_code
      - is_valid
      - name
      - description
      title: CouponCheckResponse
    CreateFolderRequest:
      properties:
        path:
          anyOf:
          - type: string
          - type: 'null'
          title: Path
        parent_asset_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Parent Asset Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
      type: object
      title: CreateFolderRequest
      description: Either provide path (create at path) or parent_asset_id + name
        (create under parent).
    CreateFolderResponse:
      properties:
        id:
          type: string
          title: Id
        path:
          type: string
          title: Path
      type: object
      required:
      - id
      - path
      title: CreateFolderResponse
    DeleteAccountPreview:
      properties:
        email:
          type: string
          title: Email
        firebase_uid:
          type: string
          title: Firebase Uid
        assets:
          type: integer
          title: Assets
          description: "Every asset, project and folder this user created \u2014 wherever\
            \ it lives \u2014 with its renditions, keyframes and S3 objects"
        assets_kept_not_created_by_user:
          type: integer
          title: Assets Kept Not Created By User
          description: 'Assets somebody else created that sit in the groups being
            deleted: untouched, but about to lose their last group mapping'
        chats:
          type: integer
          title: Chats
          description: Chats this user owns. A chat whose creator could not be determined
            has no owner, and is neither counted nor deleted
        agents:
          type: integer
          title: Agents
          description: Assistants this user authored that would be deleted, published
            copies included, with their logo and demo media
        groups:
          type: integer
          title: Groups
          description: 'Groups that would be deleted: those the user is the sole member
            of. Groups shared with somebody else are never counted, and never deleted.'
        social_accounts:
          type: boolean
          title: Social Accounts
          description: True if the user has linked social accounts that would be released
            (and disconnected where nobody else uses them)
        stripe_customer_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Stripe Customer Id
          description: The Stripe customer that would keep its invoices; null when
            the user has none
        stripe_subscriptions:
          items:
            type: string
          type: array
          title: Stripe Subscriptions
          description: Ids of the still-billing subscriptions that would be cancelled
        stripe_error:
          anyOf:
          - type: string
          - type: 'null'
          title: Stripe Error
          description: Why the subscriptions could not be listed; when set, stripe_subscriptions
            is incomplete rather than empty
        firebase_account_deleted:
          type: boolean
          title: Firebase Account Deleted
          description: True if the Firebase login would be deleted too
        firebase_skip_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Firebase Skip Reason
          description: Why the Firebase account would be left alone
        signup_grant_lost_on_recreate:
          type: boolean
          title: Signup Grant Lost On Recreate
          description: 'True if this email already received the free signup grant:
            the signup history outlives the account, so registering again with the
            same address would earn no second grant'
      type: object
      required:
      - email
      - firebase_uid
      - assets
      - assets_kept_not_created_by_user
      - chats
      - agents
      - groups
      - social_accounts
      - firebase_account_deleted
      - signup_grant_lost_on_recreate
      title: DeleteAccountPreview
      description: 'What a real delete *would* remove, as counted by a dry run.


        Only populated on a dry run: once the purge actually runs, the same

        information is in the ``*_deleted`` counters of the summary itself.'
    DeleteAccountSummary:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        preview:
          anyOf:
          - $ref: '#/components/schemas/DeleteAccountPreview'
          - type: 'null'
          description: What would have been deleted; set only on a dry run, where
            every counter below stays 0 because nothing was touched
        assets_deleted:
          type: integer
          title: Assets Deleted
          default: 0
        chats_deleted:
          type: integer
          title: Chats Deleted
          default: 0
        agents_deleted:
          type: integer
          title: Agents Deleted
          default: 0
        assistant_media_handed_over:
          type: integer
          title: Assistant Media Handed Over
          description: Assistant logos/demos this user uploaded that serve somebody
            else's assistant, re-authored to that assistant's owner instead of being
            deleted with the account
          default: 0
        groups_deleted:
          type: integer
          title: Groups Deleted
          default: 0
        s3_objects_deleted:
          type: integer
          title: S3 Objects Deleted
          default: 0
        s3_multipart_uploads_aborted:
          type: integer
          title: S3 Multipart Uploads Aborted
          default: 0
        stripe_subscriptions_cancelled:
          type: integer
          title: Stripe Subscriptions Cancelled
          default: 0
        stripe_customer_kept:
          type: boolean
          title: Stripe Customer Kept
          default: false
        firebase_deleted:
          type: boolean
          title: Firebase Deleted
          default: false
        firebase_skip_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Firebase Skip Reason
          description: Why the Firebase account was left alone; null when it was deleted
        signup_history_recorded:
          type: boolean
          title: Signup History Recorded
          default: false
        user_deleted:
          type: boolean
          title: User Deleted
          default: false
      type: object
      title: DeleteAccountSummary
      description: "What a completed purge removed \u2014 the ``done`` event, as a\
        \ typed model."
    DuplicateAssetResponse:
      properties:
        id:
          type: string
          title: Id
        skipped_count:
          type: integer
          title: Skipped Count
          description: 'Items of a duplicated folder left out of the copy: group and
            master clips, and files still uploading. Always 0 for a file.'
          default: 0
      type: object
      required:
      - id
      title: DuplicateAssetResponse
      description: New asset id after a successful duplicate.
    ElevenLabsVoice:
      properties:
        voice_id:
          type: string
          title: Voice Id
          description: The ElevenLabs voice ID.
        name:
          type: string
          title: Name
          description: Display name of the voice.
        accent:
          anyOf:
          - type: string
          - type: 'null'
          title: Accent
          description: Accent of the voice, if provided.
        gender:
          anyOf:
          - type: string
          - type: 'null'
          title: Gender
          description: Gender of the voice, if provided.
        age:
          anyOf:
          - type: string
          - type: 'null'
          title: Age
          description: Age descriptor of the voice, if provided.
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
          description: Primary language of the voice, if provided.
        category:
          anyOf:
          - type: string
          - type: 'null'
          title: Category
          description: Voice category (generated, cloned, premade, professional, famous,
            high_quality).
        descriptive:
          anyOf:
          - type: string
          - type: 'null'
          title: Descriptive
          description: Short descriptive text for the voice, if provided.
        use_case:
          anyOf:
          - type: string
          - type: 'null'
          title: Use Case
          description: Primary use-case of the voice, if provided.
        preview_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Preview Url
          description: Preview audio URL for the voice, if provided.
      additionalProperties: false
      type: object
      required:
      - voice_id
      - name
      title: ElevenLabsVoice
    EmailNotVerifiedDetail:
      properties:
        code:
          type: string
          title: Code
          description: Always `EMAIL_NOT_VERIFIED`.
        message:
          type: string
          title: Message
          description: What the user should do next.
      type: object
      required:
      - code
      - message
      title: EmailNotVerifiedDetail
    EmailNotVerifiedErrorBody:
      properties:
        detail:
          $ref: '#/components/schemas/EmailNotVerifiedDetail'
      type: object
      required:
      - detail
      title: EmailNotVerifiedErrorBody
    ExportAssetRenditionStatus:
      properties:
        asset_id:
          type: string
          title: Asset Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        file_type:
          anyOf:
          - $ref: '#/components/schemas/FileType'
          - type: 'null'
        state:
          type: string
          enum:
          - ready
          - needs_rendition
          - generating
          - source_limited
          - missing
          - not_applicable
          title: State
        selected_width:
          anyOf:
          - type: integer
          - type: 'null'
          title: Selected Width
        selected_height:
          anyOf:
          - type: integer
          - type: 'null'
          title: Selected Height
        selected_is_original:
          type: boolean
          title: Selected Is Original
          default: false
        uses_2k_input:
          type: boolean
          title: Uses 2K Input
          default: false
        suggested_min_dimension:
          anyOf:
          - type: integer
          - type: 'null'
          title: Suggested Min Dimension
        estimated_cost_tellers_tokens:
          type: number
          title: Estimated Cost Tellers Tokens
          default: 0.0
      type: object
      required:
      - asset_id
      - state
      title: ExportAssetRenditionStatus
      description: What one project asset would contribute to one export rendition.
    ExportCostEstimateResponse:
      properties:
        rendition:
          type: string
          enum:
          - 480p
          - 720p
          - 1080p
          - 4k
          title: Rendition
        duration_seconds:
          type: number
          title: Duration Seconds
        estimated_cost_tellers_tokens:
          type: number
          title: Estimated Cost Tellers Tokens
        detail_duration:
          type: number
          title: Detail Duration
        total_estimate_duration:
          type: number
          title: Total Estimate Duration
        duration_exported_file:
          type: number
          title: Duration Exported File
        duration_rendering_file:
          items:
            $ref: '#/components/schemas/ExportRenderingDurationResponse'
          type: array
          title: Duration Rendering File
      type: object
      required:
      - rendition
      - duration_seconds
      - estimated_cost_tellers_tokens
      - detail_duration
      - total_estimate_duration
      - duration_exported_file
      - duration_rendering_file
      title: ExportCostEstimateResponse
    ExportPreflightResponse:
      properties:
        project_id:
          type: string
          title: Project Id
        duration_seconds:
          type: number
          title: Duration Seconds
        asset_count:
          type: integer
          title: Asset Count
        renditions:
          items:
            $ref: '#/components/schemas/ExportRenditionPreflight'
          type: array
          title: Renditions
        renditions_needed_for_optimum_export:
          type: integer
          title: Renditions Needed For Optimum Export
        estimated_rendition_cost_tellers_tokens:
          type: number
          title: Estimated Rendition Cost Tellers Tokens
        license_warnings:
          items:
            $ref: '#/components/schemas/LicenseWarning'
          type: array
          title: License Warnings
          default: []
      type: object
      required:
      - project_id
      - duration_seconds
      - asset_count
      - renditions
      - renditions_needed_for_optimum_export
      - estimated_rendition_cost_tellers_tokens
      title: ExportPreflightResponse
    ExportProjectResponse:
      properties:
        task_id:
          type: string
          title: Task Id
        asset_id:
          type: string
          title: Asset Id
        local_originals:
          items:
            $ref: '#/components/schemas/LocalOriginalMachine'
          type: array
          title: Local Originals
          description: The machines holding the originals of hybrid media in this
            project. The export is made from their proxies; exporting from one of
            these machines uses the originals. Empty when the project has no hybrid
            media.
      type: object
      required:
      - task_id
      - asset_id
      title: ExportProjectResponse
      description: 'Response for POST /project/{project_id}/export: task_id and the
        new export asset_id.'
    ExportRenderingDurationResponse:
      properties:
        asset_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Asset Id
        estimated_time:
          type: number
          title: Estimated Time
      type: object
      required:
      - asset_id
      - estimated_time
      title: ExportRenderingDurationResponse
    ExportRenditionPreflight:
      properties:
        rendition:
          type: string
          enum:
          - 480p
          - 720p
          - 1080p
          - 4k
          title: Rendition
        min_dimension:
          type: integer
          title: Min Dimension
        has_all_renditions:
          type: boolean
          title: Has All Renditions
        uses_2k_input:
          type: boolean
          title: Uses 2K Input
        needs_rendition_count:
          type: integer
          title: Needs Rendition Count
        generating_count:
          type: integer
          title: Generating Count
        source_limited_count:
          type: integer
          title: Source Limited Count
        missing_count:
          type: integer
          title: Missing Count
        estimated_rendition_cost_tellers_tokens:
          type: number
          title: Estimated Rendition Cost Tellers Tokens
        assets:
          items:
            $ref: '#/components/schemas/ExportAssetRenditionStatus'
          type: array
          title: Assets
      type: object
      required:
      - rendition
      - min_dimension
      - has_all_renditions
      - uses_2k_input
      - needs_rendition_count
      - generating_count
      - source_limited_count
      - missing_count
      - estimated_rendition_cost_tellers_tokens
      - assets
      title: ExportRenditionPreflight
      description: Preflight verdict for one export resolution.
    FailedTaskResponse:
      properties:
        status:
          type: string
          const: FAILED
          title: Status
          default: FAILED
        result:
          anyOf:
          - {}
          - type: 'null'
          title: Result
      type: object
      title: FailedTaskResponse
    FileReference:
      properties:
        file_name:
          type: string
          title: File Name
        is_folder:
          type: boolean
          title: Is Folder
        file_id:
          anyOf:
          - type: string
          - type: 'null'
          title: File Id
        file_type:
          anyOf:
          - type: string
          - type: 'null'
          title: File Type
        mime_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Mime Type
        duration_seconds:
          anyOf:
          - type: number
          - type: 'null'
          title: Duration Seconds
        last_edit:
          type: string
          format: date-time
          title: Last Edit
        right:
          anyOf:
          - $ref: '#/components/schemas/GroupRights'
          - type: 'null'
        preview_frames:
          anyOf:
          - items:
              $ref: '#/components/schemas/PreviewFrame'
            type: array
          - type: 'null'
          title: Preview Frames
      type: object
      required:
      - file_name
      - is_folder
      - file_id
      - file_type
      - last_edit
      title: FileReference
    FileType:
      type: string
      enum:
      - video
      - audio
      - image
      - text
      - pdf
      - lut
      - font
      - placeholder
      - group_clip
      - master_clip
      - aaf
      - proj_original
      - folder
      - project
      - entity
      - teller_config
      title: FileType
    GenerateAudioRequest:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Text prompt describing the audio.
        model:
          type: string
          enum:
          - music
          - sfx
          title: Model
          description: '''music'' for a composed track, ''sfx'' for a sound effect.'
          default: music
        duration_seconds:
          type: number
          title: Duration Seconds
          description: "Requested length. Accepted range differs per model \u2014\
            \ music takes 10-300s and sfx 0.5-30s. See GET /tools/models."
          default: 30.0
        output_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Output Path
          description: Optional library path for the generated audio file.
        reference_audio:
          anyOf:
          - $ref: '#/components/schemas/AssetPeriodRef'
          - type: 'null'
          description: Optional audio range to use for ElevenLabs music inpainting.
            Only supported when model='music'.
      additionalProperties: false
      type: object
      required:
      - prompt
      title: GenerateAudioRequest
    GenerateAudioResponse:
      properties:
        asset_id:
          type: string
          title: Asset Id
        duration_seconds:
          type: number
          title: Duration Seconds
      additionalProperties: false
      type: object
      required:
      - asset_id
      - duration_seconds
      title: GenerateAudioResponse
    GenerateDescriptionResponse:
      properties:
        task_id:
          type: string
          title: Task Id
        needs_downscale:
          type: boolean
          title: Needs Downscale
      type: object
      required:
      - task_id
      - needs_downscale
      title: GenerateDescriptionResponse
    GenerateImageRequest:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Text prompt for image generation.
        model:
          type: string
          enum:
          - p-image
          - ideogram
          - gpt-image
          - gpt-image-2.6-sunburst
          - gpt-image-2.6-flare
          - gpt-image-2.5-sunburst
          - gpt-image-2.5-flare
          - gpt-image-2
          - banana
          - banana-pro
          - banana-flash
          - seedream
          - seedream-pro
          title: Model
          description: Model to use.
          default: p-image
        format:
          anyOf:
          - type: string
            enum:
            - '16:9'
            - '9:16'
            - '1:1'
            - '3:2'
            - '2:3'
            - '4:3'
            - '3:4'
          - type: 'null'
          title: Format
          description: "Aspect ratio. Defaults to 16:9. Left unset so an explicit\
            \ choice can be told from the default \u2014 a model that would ignore\
            \ it rejects it rather than silently producing another shape."
        resolution:
          anyOf:
          - type: string
            enum:
            - 1k
            - 1.5k
            - 2k
            - 3k
            - 4k
          - type: 'null'
          title: Resolution
          description: Output resolution. Used by gpt-image (maps to pixel dimensions),
            banana models (1k / 2k / 4k) and seedream (2k / 3k / 4k; seedream-pro
            1k / 1.5k / 2k). Ignored by p-image.
        width:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Width
          description: Custom output width in pixels for Seedream. Must be supplied
            together with height.
        height:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Height
          description: Custom output height in pixels for Seedream. Must be supplied
            together with width.
        input_frame:
          anyOf:
          - type: string
          - $ref: '#/components/schemas/AssetFrameRef'
          - type: 'null'
          title: Input Frame
          description: "Source image, enabling edit/compose mode. An asset id, or\
            \ an object pinning `timestamp_seconds` / `is_last_frame` when the asset\
            \ is a video \u2014 see GET /tools/models."
      additionalProperties: false
      type: object
      required:
      - prompt
      title: GenerateImageRequest
    GenerateImageResponse:
      properties:
        asset_id:
          type: string
          title: Asset Id
      additionalProperties: false
      type: object
      required:
      - asset_id
      title: GenerateImageResponse
    GenerateMissingRenditionResult:
      properties:
        asset_id:
          type: string
          title: Asset Id
        min_dimension:
          type: integer
          title: Min Dimension
        status:
          type: string
          enum:
          - queued
          - already_running
          - not_allowed
          title: Status
        task_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Task Id
        estimated_cost_tellers_tokens:
          type: number
          title: Estimated Cost Tellers Tokens
          default: 0.0
      type: object
      required:
      - asset_id
      - min_dimension
      - status
      title: GenerateMissingRenditionResult
      description: What happened to one asset when its export master was requested.
    GenerateMissingRenditionsResponse:
      properties:
        project_id:
          type: string
          title: Project Id
        queued_count:
          type: integer
          title: Queued Count
        skipped_count:
          type: integer
          title: Skipped Count
        estimated_cost_tellers_tokens:
          type: number
          title: Estimated Cost Tellers Tokens
        assets:
          items:
            $ref: '#/components/schemas/GenerateMissingRenditionResult'
          type: array
          title: Assets
      type: object
      required:
      - project_id
      - queued_count
      - skipped_count
      - estimated_cost_tellers_tokens
      - assets
      title: GenerateMissingRenditionsResponse
    GenerateTranscriptResponse:
      properties:
        task_id:
          type: string
          title: Task Id
      type: object
      required:
      - task_id
      title: GenerateTranscriptResponse
    GenerateTtsRequest:
      properties:
        prompt:
          type: string
          minLength: 1
          title: Prompt
          description: Text to speak. Named `prompt` for consistency with the other
            generate routes; the underlying model calls it `text`.
        voice_id:
          type: string
          minLength: 1
          title: Voice Id
          description: "ElevenLabs voice id \u2014 obtain one from POST /tools/search/voices."
        model:
          type: string
          enum:
          - elevenlabs-v3
          - elevenlabs-v4
          - elevenlabs-v4-turbo
          - gemini-3.1-flash-tts
          title: Model
          description: Model to use.
          default: elevenlabs-v3
        output_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Output Path
          description: Optional library path for the generated audio file.
      additionalProperties: false
      type: object
      required:
      - prompt
      - voice_id
      title: GenerateTtsRequest
    GenerateTtsResponse:
      properties:
        asset_id:
          type: string
          title: Asset Id
        duration_seconds:
          type: number
          title: Duration Seconds
        voice_id:
          type: string
          title: Voice Id
      additionalProperties: false
      type: object
      required:
      - asset_id
      - duration_seconds
      - voice_id
      title: GenerateTtsResponse
    GenerateVideoRequest:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Text prompt describing the video to generate.
        model:
          type: string
          enum:
          - p-video
          - p-video-2
          - kling
          - kling-pro
          - kling-4
          - runway
          - wan
          - ltx
          - seedance
          - minimax-h3-max
          title: Model
          description: Model to use.
          default: p-video
        format:
          anyOf:
          - type: string
            enum:
            - '16:9'
            - '9:16'
          - type: 'null'
          title: Format
          description: "Aspect ratio. Defaults to 16:9. Left unset so an explicit\
            \ choice can be told from the default \u2014 a model that would ignore\
            \ it rejects it rather than silently producing another shape."
        resolution:
          anyOf:
          - type: string
            enum:
            - 480p
            - 720p
            - 768p
            - 1080p
          - type: 'null'
          title: Resolution
          description: 'Output resolution. Supported values vary by model: p-video
            and kling-4 support 720p/1080p; wan/seedance support 480p/720p; minimax-h3-max
            supports 480p/768p; kling/runway ignore this field.'
        input_frame:
          anyOf:
          - type: string
          - $ref: '#/components/schemas/AssetFrameRef'
          - type: 'null'
          title: Input Frame
          description: Start (first) frame. An asset id for the default frame, or
            an object pinning `timestamp_seconds` / `is_last_frame`.
        output_frame:
          anyOf:
          - type: string
          - $ref: '#/components/schemas/AssetFrameRef'
          - type: 'null'
          title: Output Frame
          description: "End (last) frame. An asset id for the default frame, or an\
            \ object pinning `timestamp_seconds` / `is_last_frame`. Not every model\
            \ accepts an end frame \u2014 see GET /tools/models."
        input_audio:
          anyOf:
          - type: string
          - $ref: '#/components/schemas/AssetPeriodRef'
          - type: 'null'
          title: Input Audio
          description: "Audio reference. An asset id for the whole asset, or an object\
            \ pinning `start_time` / `end_time`. Not every model accepts audio, and\
            \ only some accept a range \u2014 see GET /tools/models."
        output_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Output Path
          description: 'Where to save the video in the library: a file path (''Folder/name.mp4'')
            or a folder ending with ''/'' (''Folder/''). Defaults to the model''s
            own folder.'
      additionalProperties: false
      type: object
      required:
      - prompt
      title: GenerateVideoRequest
    GenerateVideoResponse:
      properties:
        asset_id:
          type: string
          title: Asset Id
        duration_seconds:
          type: number
          title: Duration Seconds
      additionalProperties: false
      type: object
      required:
      - asset_id
      - duration_seconds
      title: GenerateVideoResponse
    GenerationStatus:
      type: string
      enum:
      - running
      - succeeded
      - failed
      title: GenerationStatus
    GraphBoundary:
      properties:
        node_key:
          type: string
          title: Node Key
        direction:
          type: string
          enum:
          - upstream
          - downstream
          - associated
          title: Direction
        depth:
          type: integer
          title: Depth
          description: Depth the hidden neighbours would be at.
        type:
          type: string
          enum:
          - breadth
          - depth
          title: Type
          description: 'breadth: more neighbours of this node (page with cursor);
            depth: the walk stopped here (ask for this node with a depth).'
        hidden_count:
          type: integer
          title: Hidden Count
        hidden_count_is_lower_bound:
          type: boolean
          title: Hidden Count Is Lower Bound
          default: false
        list:
          type: string
          enum:
          - chats
          - links
          title: List
          description: 'chats: the focus''s chats (associated); links: assets. Tells
            two associated boundaries on the focus apart.'
          default: links
        cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
          description: 'breadth only: pass with this node''s id and direction for
            the next neighbours.'
      type: object
      required:
      - node_key
      - direction
      - depth
      - type
      - hidden_count
      title: GraphBoundary
    GraphEdge:
      properties:
        source:
          type: string
          title: Source
          description: Node key; the input when directed.
        target:
          type: string
          title: Target
          description: Node key; what was made from or uses it.
        link_type:
          type: string
          title: Link Type
        link_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Link Name
        directed:
          type: boolean
          title: Directed
      type: object
      required:
      - source
      - target
      - link_type
      - directed
      title: GraphEdge
    GraphNode:
      properties:
        key:
          type: string
          title: Key
          description: 'Unique within the response: asset:<id> for an asset focus,
            asset:<id>:<direction> for other assets (one asset can be both upstream
            and downstream), chat:<id> for chats, call:<call_id>:<direction> for model
            calls.'
        kind:
          type: string
          enum:
          - asset
          - chat
          - call
          title: Kind
        id:
          type: string
          title: Id
          description: The asset id, the chat id or the call id.
        name:
          type: string
          title: Name
        path:
          anyOf:
          - type: string
          - type: 'null'
          title: Path
        file_type:
          anyOf:
          - $ref: '#/components/schemas/FileType'
          - type: 'null'
        mime_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Mime Type
        added_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Added At
        parent_chat_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Chat Id
          description: For a sub-chat, the chat it belongs to.
        direction:
          type: string
          enum:
          - root
          - upstream
          - downstream
          - associated
          title: Direction
        depth:
          type: integer
          title: Depth
          description: 'Levels from the requested node (0 for it). A call node is
            not a level: it has its output''s depth.'
        tool:
          anyOf:
          - type: string
          - type: 'null'
          title: Tool
          description: 'Call: the tool''s id.'
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
          description: 'Call: provider model.'
        status:
          anyOf:
          - $ref: '#/components/schemas/GenerationStatus'
          - type: 'null'
        tellers_tokens:
          anyOf:
          - type: number
          - type: 'null'
          title: Tellers Tokens
          description: 'Call: what it cost. Only for the user who ran it.'
        duration_seconds:
          anyOf:
          - type: number
          - type: 'null'
          title: Duration Seconds
        started_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Started At
        parameters:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Parameters
          description: 'Call: its input. Only for the user who ran it.'
        chat_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Chat Id
          description: 'Call: the chat it ran in, if any.'
        tool_call_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Tool Call Id
          description: 'Call: its id in that chat''s messages.'
      type: object
      required:
      - key
      - kind
      - id
      - name
      - direction
      - depth
      title: GraphNode
    GroupRights:
      type: string
      enum:
      - ADMIN
      - READ
      - WRITE
      - VIEW
      title: GroupRights
      description: 'A right on an asset, a chat or an assistant, weakest first:

        VIEW < READ < WRITE < ADMIN.


        On an asset, VIEW sees the file and everything about it except its

        comments, which READ adds. Chats and assistants have nothing READ adds, so

        VIEW opens what READ does there. Group memberships start at READ.'
    GroupShareInfo:
      properties:
        group_id:
          type: string
          title: Group Id
        group_name:
          type: string
          title: Group Name
        right:
          type: string
          title: Right
        can_share:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Can Share
          description: 'Whether the group may share onward: ADMIN, or a share with
            can_share. Null for chats, which cannot be shared onward.'
      type: object
      required:
      - group_id
      - group_name
      - right
      title: GroupShareInfo
      description: Group with its right on the asset.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ImageCapability:
      properties:
        models:
          items:
            $ref: '#/components/schemas/ImageModelCapability'
          type: array
          title: Models
      additionalProperties: false
      type: object
      required:
      - models
      title: ImageCapability
    ImageModelCapability:
      properties:
        id:
          type: string
          title: Id
          description: Value to pass as `model`.
        tool_id:
          type: string
          title: Tool Id
          description: "The agent tool backing this model. Join to `available_agent_tools`\
            \ in GET /settings for its display name, description and pricing \u2014\
            \ kept there rather than duplicated here so there is one source of truth.\
            \ Several models can share a tool."
        required:
          items:
            type: string
          type: array
          title: Required
          description: Request fields this model cannot do without. Everything else
            in the request schema is optional.
        formats:
          items:
            type: string
          type: array
          title: Formats
          description: Aspect ratios acted on. Empty = field ignored.
        resolutions:
          items:
            type: string
          type: array
          title: Resolutions
          description: Resolutions acted on. Empty = field ignored.
        supports_input_frame:
          type: boolean
          title: Supports Input Frame
          description: Whether `input_frame` (source image) is used.
        supports_frame_timestamp:
          type: boolean
          title: Supports Frame Timestamp
          description: Whether `input_frame` may pin a `timestamp_seconds` / `is_last_frame`.
            False means only a bare asset id is accepted.
        max_char:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Char
          description: Longest `prompt` accepted, in characters. None = unbounded.
      additionalProperties: false
      type: object
      required:
      - id
      - tool_id
      - required
      - formats
      - resolutions
      - supports_input_frame
      - supports_frame_timestamp
      title: ImageModelCapability
      description: "What one image model accepts, as published by ``GET /tools/models``.\n\
        \n``formats`` / ``resolutions`` list the values the model actually *acts on*.\n\
        An empty list means the field is ignored \u2014 gpt-image derives its dimensions\n\
        from ``resolution`` and pays no attention to ``format``, while p-image is\n\
        the reverse."
    LicenseWarning:
      properties:
        asset_id:
          type: string
          title: Asset Id
        title:
          type: string
          title: Title
        license:
          type: string
          title: License
        license_url:
          anyOf:
          - type: string
          - type: 'null'
          title: License Url
        source_name:
          type: string
          title: Source Name
        source_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Url
        authors:
          items:
            type: string
          type: array
          title: Authors
          default: []
      type: object
      required:
      - asset_id
      - title
      - license
      - source_name
      title: LicenseWarning
      description: A timeline asset that needs a licence before the export is used.
    ListFilesResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/FileReference'
          type: array
          title: Items
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
      type: object
      required:
      - items
      title: ListFilesResponse
    LlmModelTier:
      properties:
        low:
          anyOf:
          - type: string
            enum:
            - gpt-6.2-astra
            - gpt-6.2-sol
            - gpt-6-astra
            - gpt-6.1-sol
            - gpt-6.1-terra
            - gpt-6-sol
            - gpt-6-luna
            - gpt-5.6-sol
            - gpt-5.6-terra
            - gpt-5.6-luna
            - gpt-5.5-2026-04-23
            - gpt-5.5-pro-2026-04-23
            - gpt-5.4-pro-2026-03-05
            - gpt-5.4
            - gpt-5.4-mini
            - gpt-5.3-codex
            - gpt-5.2-2025-12-11
            - gpt-5-mini-2025-08-07
            - gpt-5-nano
          - type: 'null'
          title: Low
        medium:
          anyOf:
          - type: string
            enum:
            - gpt-6.2-astra
            - gpt-6.2-sol
            - gpt-6-astra
            - gpt-6.1-sol
            - gpt-6.1-terra
            - gpt-6-sol
            - gpt-6-luna
            - gpt-5.6-sol
            - gpt-5.6-terra
            - gpt-5.6-luna
            - gpt-5.5-2026-04-23
            - gpt-5.5-pro-2026-04-23
            - gpt-5.4-pro-2026-03-05
            - gpt-5.4
            - gpt-5.4-mini
            - gpt-5.3-codex
            - gpt-5.2-2025-12-11
            - gpt-5-mini-2025-08-07
            - gpt-5-nano
          - type: 'null'
          title: Medium
        high:
          anyOf:
          - type: string
            enum:
            - gpt-6.2-astra
            - gpt-6.2-sol
            - gpt-6-astra
            - gpt-6.1-sol
            - gpt-6.1-terra
            - gpt-6-sol
            - gpt-6-luna
            - gpt-5.6-sol
            - gpt-5.6-terra
            - gpt-5.6-luna
            - gpt-5.5-2026-04-23
            - gpt-5.5-pro-2026-04-23
            - gpt-5.4-pro-2026-03-05
            - gpt-5.4
            - gpt-5.4-mini
            - gpt-5.3-codex
            - gpt-5.2-2025-12-11
            - gpt-5-mini-2025-08-07
            - gpt-5-nano
          - type: 'null'
          title: High
      type: object
      title: LlmModelTier
    LlmSubscriptionRequiredDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        required_subscription_tier:
          $ref: '#/components/schemas/SubscriptionTier'
      type: object
      required:
      - code
      - message
      - required_subscription_tier
      title: LlmSubscriptionRequiredDetail
    LlmSubscriptionRequiredErrorBody:
      properties:
        detail:
          $ref: '#/components/schemas/LlmSubscriptionRequiredDetail'
      type: object
      required:
      - detail
      title: LlmSubscriptionRequiredErrorBody
    LocalOriginal:
      properties:
        machine_id:
          type: string
          maxLength: 200
          minLength: 1
          title: Machine Id
          description: The desktop install that holds the original.
        local_media_id:
          type: string
          maxLength: 200
          pattern: ^local-[a-z0-9-]+$
          title: Local Media Id
          description: "The original's id in that desktop's local library (local-\u2026\
            )."
        source_name:
          anyOf:
          - type: string
            maxLength: 1024
          - type: 'null'
          title: Source Name
          description: The original's file name.
        width:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Width
        height:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Height
        frame_rate:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Frame Rate
        duration_seconds:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Duration Seconds
        video_codec:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Video Codec
        audio_codec:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Audio Codec
        byte_size:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Byte Size
        capture:
          anyOf:
          - $ref: '#/components/schemas/LocalOriginalCapture'
          - type: 'null'
          description: 'The original''s capture date, camera and position. Written
            to the asset at upload, not kept in this record: read back, it is None.'
      type: object
      required:
      - machine_id
      - local_media_id
      title: LocalOriginal
    LocalOriginalCapture:
      properties:
        captured_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Captured At
          description: When the media was captured, as the file says.
        camera:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Camera
        latitude:
          anyOf:
          - type: number
            maximum: 90.0
            minimum: -90.0
          - type: 'null'
          title: Latitude
        longitude:
          anyOf:
          - type: number
            maximum: 180.0
            minimum: -180.0
          - type: 'null'
          title: Longitude
      type: object
      title: LocalOriginalCapture
      description: What a local original records about its capture, as the desktop
        read it.
    LocalOriginalMachine:
      properties:
        machine_id:
          type: string
          title: Machine Id
          description: A desktop install holding originals.
        asset_ids:
          items:
            type: string
          type: array
          title: Asset Ids
          description: The assets whose original is on that machine.
      type: object
      required:
      - machine_id
      - asset_ids
      title: LocalOriginalMachine
    LongVideoAnalysisSettings:
      properties:
        enabled:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Enabled
          description: Whether videos longer than 'min_duration_s' use these settings.
            When false, every video is described like a short one (static frame sampling,
            5-minute chunks).
        min_duration_s:
          anyOf:
          - type: integer
            minimum: 60.0
          - type: 'null'
          title: Min Duration S
          description: Videos longer than this many seconds count as long.
        processing:
          anyOf:
          - type: string
            enum:
            - static
            - agentic
          - type: 'null'
          title: Processing
          description: '''agentic'' lets Gemini pick which frames to look at (cheaper
            on long footage); ''static'' samples at the configured fps.'
        split_duration_s:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Split Duration S
          description: Length in seconds of each Gemini call a long video is split
            into. 0 sends the whole video in one call.
      additionalProperties: false
      type: object
      title: LongVideoAnalysisSettings
      description: 'How descriptions of long videos differ from short ones.


        Only scene-description generation reads this; ``video_analyse_gemini``

        takes its processing mode as a tool argument instead. Every field is

        optional so a folder config can override one of them and inherit the rest.'
    MultipartAbortRequest:
      properties:
        asset_id:
          type: string
          title: Asset Id
        multipart_upload_id:
          type: string
          title: Multipart Upload Id
      type: object
      required:
      - asset_id
      - multipart_upload_id
      title: MultipartAbortRequest
    MultipartCompletePart:
      properties:
        part_number:
          type: integer
          title: Part Number
        etag:
          type: string
          title: Etag
      type: object
      required:
      - part_number
      - etag
      title: MultipartCompletePart
    MultipartCompleteRequest:
      properties:
        asset_id:
          type: string
          title: Asset Id
        multipart_upload_id:
          type: string
          title: Multipart Upload Id
        parts:
          items:
            $ref: '#/components/schemas/MultipartCompletePart'
          type: array
          title: Parts
      type: object
      required:
      - asset_id
      - multipart_upload_id
      - parts
      title: MultipartCompleteRequest
    MultipartPartUrl:
      properties:
        part_number:
          type: integer
          title: Part Number
        url:
          type: string
          title: Url
      type: object
      required:
      - part_number
      - url
      title: MultipartPartUrl
    MultipartPartUrlsRequest:
      properties:
        asset_id:
          type: string
          title: Asset Id
        multipart_upload_id:
          type: string
          title: Multipart Upload Id
        part_numbers:
          items:
            type: integer
          type: array
          maxItems: 100
          minItems: 1
          title: Part Numbers
          description: '1-based part numbers to presign. Request them as the upload
            progresses instead of relying on the URLs returned by upload_urls: those
            are signed with temporary credentials, so they can expire long before
            a large upload reaches its last parts.'
      type: object
      required:
      - asset_id
      - multipart_upload_id
      - part_numbers
      title: MultipartPartUrlsRequest
    MultipartPartUrlsResponse:
      properties:
        urls:
          items:
            $ref: '#/components/schemas/MultipartPartUrl'
          type: array
          title: Urls
      type: object
      required:
      - urls
      title: MultipartPartUrlsResponse
    PendingTaskResponse:
      properties:
        status:
          type: string
          const: PENDING
          title: Status
          default: PENDING
        progress:
          anyOf:
          - type: number
          - type: 'null'
          title: Progress
        result:
          anyOf:
          - {}
          - type: 'null'
          title: Result
      type: object
      title: PendingTaskResponse
    PlanLineItem:
      properties:
        price_id:
          type: string
          title: Price Id
        quantity:
          type: integer
          minimum: 0.0
          title: Quantity
          description: Default quantity for this price.
        quantity_step:
          type: integer
          minimum: 1.0
          title: Quantity Step
          description: Checkout quantity step for this item.
        units_per_quantity:
          type: number
          exclusiveMinimum: 0.0
          title: Units Per Quantity
          description: Multiplier to convert checkout quantity into displayed units
            for this item.
          default: 1
      additionalProperties: false
      type: object
      required:
      - price_id
      - quantity
      - quantity_step
      title: PlanLineItem
      description: Reusable cart line item (used by checkout defaults).
    PlanPricing:
      properties:
        lines:
          items:
            $ref: '#/components/schemas/CatalogPricingLine'
          type: array
          title: Lines
          description: Priced Stripe lines (one for typical one-off; two for subscription).
      additionalProperties: false
      type: object
      required:
      - lines
      title: PlanPricing
      description: 'Pricing-only blob for Rust ``pricing_preview_json`` (``lines``
        only).


        Default starter quantities live on the plan as ``default_items``.'
    PreviewFrame:
      properties:
        asset_id:
          type: string
          title: Asset Id
        frame_time:
          type: number
          title: Frame Time
      type: object
      required:
      - asset_id
      - frame_time
      title: PreviewFrame
    ProcessAssetsRequest:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/AssetUploadResponse'
          type: array
          title: Assets
        version:
          anyOf:
          - $ref: '#/components/schemas/VersionReference'
          - type: 'null'
        cutter_sensitivity:
          type: number
          title: Cutter Sensitivity
          default: 0.5
        generate_proxy:
          items:
            type: string
            enum:
            - '360'
            - '480'
            - '720'
            - '1080'
            - '2160'
          type: array
          title: Generate Proxy
          default:
          - '720'
      type: object
      required:
      - assets
      - version
      title: ProcessAssetsRequest
    PublishedCustomAgentSearchResult:
      properties:
        name:
          type: string
          title: Name
          description: The published custom agent name.
        description:
          type: string
          title: Description
          description: The published custom agent description.
        app_url:
          type: string
          title: App Url
          description: Tellers app link for opening this custom agent.
      additionalProperties: false
      type: object
      required:
      - name
      - description
      - app_url
      title: PublishedCustomAgentSearchResult
    RenditionUploadCompleteRequest:
      properties:
        parts:
          items:
            $ref: '#/components/schemas/MultipartCompletePart'
          type: array
          title: Parts
          description: For a multipart upload, every part's number and ETag.
      type: object
      title: RenditionUploadCompleteRequest
    RenditionUploadPartUrlsRequest:
      properties:
        part_numbers:
          items:
            type: integer
          type: array
          maxItems: 100
          minItems: 1
          title: Part Numbers
          description: 1-based part numbers to presign.
      type: object
      required:
      - part_numbers
      title: RenditionUploadPartUrlsRequest
    RequestTaskResponse:
      properties:
        task_id:
          type: string
          title: Task Id
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      type: object
      required:
      - task_id
      title: RequestTaskResponse
    SearchAssetsRequest:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Natural language query to search for.
        search_mode:
          type: string
          enum:
          - semantic_by_scene_keyframe
          - semantic_by_scene_description
          - semantic_by_scene_sequence
          - semantic_by_asset_description
          - text_by_filename
          - text_by_file_description
          title: Search Mode
          description: Search mode. Semantic modes are embedding-based, not keyword
            matching. semantic_by_scene_keyframe matches on keyframe embeddings, semantic_by_scene_description
            on single-scene description embeddings, and semantic_by_scene_sequence
            on aggregate consecutive-scene embeddings. text_by_filename searches filenames
            by case-insensitive substring, and text_by_file_description searches asset
            descriptions by case-insensitive substring.
          default: semantic_by_scene_keyframe
        folder:
          anyOf:
          - type: string
          - type: 'null'
          title: Folder
          description: Folder path to restrict the search to (e.g. '/my-project').
        file_type:
          anyOf:
          - $ref: '#/components/schemas/FileType'
          - type: 'null'
          description: Restrict results to a specific asset file type.
        format:
          anyOf:
          - type: string
            enum:
            - '16:9'
            - '9:16'
          - type: 'null'
          title: Format
          description: Filter by aspect ratio.
        only_my_files:
          type: boolean
          title: Only My Files
          description: Search only your own library, leaving out files shared with
            you (directly or through a group) and public ones.
          default: false
        limit:
          type: integer
          maximum: 50.0
          minimum: 1.0
          title: Limit
          description: Number of results.
          default: 10
        cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
          description: Opaque cursor returned by a previous page.
      additionalProperties: false
      type: object
      required:
      - prompt
      title: SearchAssetsRequest
    SearchAssetsResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/AssetSearchResult'
          type: array
          title: Results
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
      additionalProperties: false
      type: object
      required:
      - results
      title: SearchAssetsResponse
    SearchCustomAgentsRequest:
      properties:
        query:
          type: string
          maxLength: 200
          minLength: 1
          title: Query
        limit:
          type: integer
          maximum: 50.0
          minimum: 1.0
          title: Limit
          default: 20
        recommended_by_tellers:
          type: boolean
          title: Recommended By Tellers
          description: Only agents recommended by Tellers.
          default: false
        created_by_tellers:
          type: boolean
          title: Created By Tellers
          description: Only agents created by Tellers.
          default: false
        cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
          description: Opaque cursor from a previous page.
      additionalProperties: false
      type: object
      required:
      - query
      title: SearchCustomAgentsRequest
    SearchCustomAgentsResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/PublishedCustomAgentSearchResult'
          type: array
          title: Results
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
      additionalProperties: false
      type: object
      required:
      - results
      - next_cursor
      title: SearchCustomAgentsResponse
    SearchMeCapability:
      properties:
        required:
          items:
            type: string
          type: array
          title: Required
        search_modes:
          items:
            type: string
          type: array
          title: Search Modes
          description: Values accepted for `search_mode`.
        file_types:
          items:
            type: string
          type: array
          title: File Types
          description: Values accepted for `file_type`.
        formats:
          items:
            type: string
          type: array
          title: Formats
          description: Values accepted for `format`.
        min_limit:
          type: integer
          title: Min Limit
        max_limit:
          type: integer
          title: Max Limit
        supports_folder:
          type: boolean
          title: Supports Folder
          default: true
      additionalProperties: false
      type: object
      required:
      - required
      - search_modes
      - file_types
      - formats
      - min_limit
      - max_limit
      title: SearchMeCapability
    SearchSocialVideosInput:
      properties:
        query:
          type: string
          maxLength: 200
          minLength: 1
          title: Query
          description: Keywords to find in captions, spoken words, or on-screen text.
        platform:
          type: string
          enum:
          - both
          - instagram
          - tiktok
          title: Platform
          description: Search Instagram, TikTok, or both.
        limit:
          type: integer
          maximum: 10.0
          minimum: 1.0
          title: Limit
          description: Maximum number of posts to return. Use 5 for a short list.
      additionalProperties: false
      type: object
      required:
      - query
      - platform
      - limit
      title: SearchSocialVideosInput
    SearchSocialVideosOutput:
      properties:
        results:
          items:
            $ref: '#/components/schemas/SocialVideoSearchResult'
          type: array
          title: Results
      additionalProperties: false
      type: object
      required:
      - results
      title: SearchSocialVideosOutput
    SearchStockCapability:
      properties:
        required:
          items:
            type: string
          type: array
          title: Required
        types:
          items:
            type: string
          type: array
          title: Types
          description: Values accepted for `type`.
        formats:
          items:
            type: string
          type: array
          title: Formats
          description: Values accepted for `format`.
        min_limit:
          type: integer
          title: Min Limit
        max_limit:
          type: integer
          title: Max Limit
      additionalProperties: false
      type: object
      required:
      - required
      - types
      - formats
      - min_limit
      - max_limit
      title: SearchStockCapability
    SearchStockRequest:
      properties:
        prompt:
          type: string
          title: Prompt
          description: Search query for stock content.
        type:
          type: string
          enum:
          - image
          - video
          title: Type
          description: Type of content to search.
          default: video
        format:
          anyOf:
          - type: string
            enum:
            - '16:9'
            - '9:16'
          - type: 'null'
          title: Format
          description: Filter by aspect ratio.
        limit:
          type: integer
          maximum: 80.0
          minimum: 1.0
          title: Limit
          description: Number of results.
          default: 10
      additionalProperties: false
      type: object
      required:
      - prompt
      title: SearchStockRequest
    SearchStockResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/StockAssetSearchResult'
          type: array
          title: Results
      additionalProperties: false
      type: object
      required:
      - results
      title: SearchStockResponse
    SearchVoicesCapability:
      properties:
        required:
          items:
            type: string
          type: array
          title: Required
        min_limit:
          type: integer
          title: Min Limit
        max_limit:
          type: integer
          title: Max Limit
        supports_language:
          type: boolean
          title: Supports Language
          default: true
      additionalProperties: false
      type: object
      required:
      - required
      - min_limit
      - max_limit
      title: SearchVoicesCapability
    SearchVoicesRequest:
      properties:
        search:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
          description: Free-text query (name, description, use case).
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
          description: Filter by language code, e.g. 'en'.
        limit:
          type: integer
          maximum: 100.0
          minimum: 1.0
          title: Limit
          description: Number of results.
          default: 10
      additionalProperties: false
      type: object
      title: SearchVoicesRequest
    SearchVoicesResponse:
      properties:
        voices:
          items:
            $ref: '#/components/schemas/ElevenLabsVoice'
          type: array
          title: Voices
        has_more:
          type: boolean
          title: Has More
      additionalProperties: false
      type: object
      required:
      - voices
      - has_more
      title: SearchVoicesResponse
    SharedWithMeResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/FileReference'
          type: array
          title: Items
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
          description: Pass back as cursor for the next page; null at the end.
      type: object
      required:
      - items
      title: SharedWithMeResponse
    SocialPublishingPlatformSetting:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        supported_media_types:
          items:
            type: string
          type: array
          title: Supported Media Types
      type: object
      required:
      - id
      - label
      - supported_media_types
      title: SocialPublishingPlatformSetting
    SocialVideoSearchResult:
      properties:
        url:
          type: string
          title: Url
        platform:
          type: string
          enum:
          - instagram
          - tiktok
          title: Platform
        creator_handle:
          type: string
          title: Creator Handle
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        published_at:
          type: string
          title: Published At
        view_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: View Count
        duration_seconds:
          anyOf:
          - type: number
          - type: 'null'
          title: Duration Seconds
      additionalProperties: false
      type: object
      required:
      - url
      - platform
      - creator_handle
      - caption
      - thumbnail_url
      - published_at
      - view_count
      - duration_seconds
      title: SocialVideoSearchResult
    SourceFileInfo:
      properties:
        sourceName:
          type: string
          title: Sourcename
        sourceUrl:
          anyOf:
          - type: string
          - type: 'null'
          title: Sourceurl
        sourceIconUrl:
          anyOf:
          - type: string
          - type: 'null'
          title: Sourceiconurl
        authors:
          items:
            type: string
          type: array
          title: Authors
        creationDatetime:
          anyOf:
          - type: integer
          - type: 'null'
          title: Creationdatetime
        additionDatetime:
          type: integer
          title: Additiondatetime
        isCitationRequired:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Iscitationrequired
        citation:
          anyOf:
          - type: string
          - type: 'null'
          title: Citation
        reuseConditionInfo:
          anyOf:
          - type: string
          - type: 'null'
          title: Reuseconditioninfo
        license:
          anyOf:
          - type: string
          - type: 'null'
          title: License
        licenseUrl:
          anyOf:
          - type: string
          - type: 'null'
          title: Licenseurl
        inAppPath:
          items:
            type: string
          type: array
          title: Inapppath
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        keywords:
          items:
            type: string
          type: array
          title: Keywords
        duration_seconds:
          anyOf:
          - type: number
          - type: 'null'
          title: Duration Seconds
        provider_generation_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider Generation Id
        provider_generation_id_created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Provider Generation Id Created At
        generated_by_llm_model:
          anyOf:
          - type: string
          - type: 'null'
          title: Generated By Llm Model
        prompt_used_to_create:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt Used To Create
        parent_asset_start_time:
          anyOf:
          - type: number
          - type: 'null'
          title: Parent Asset Start Time
        umid:
          anyOf:
          - type: string
          - type: 'null'
          title: Umid
        capture_device_umid:
          anyOf:
          - type: string
          - type: 'null'
          title: Capture Device Umid
        original_file_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Original File Path
        original_ffprobe_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Original Ffprobe Metadata
      type: object
      required:
      - sourceName
      - sourceUrl
      - sourceIconUrl
      - authors
      - creationDatetime
      - additionDatetime
      - inAppPath
      - title
      - description
      - keywords
      title: SourceFileInfo
    SpeechModelCapability:
      properties:
        id:
          type: string
          title: Id
          description: Value to pass as `model`.
        tool_id:
          type: string
          title: Tool Id
          description: "The agent tool backing this model. Join to `available_agent_tools`\
            \ in GET /settings for its display name, description and pricing \u2014\
            \ kept there rather than duplicated here so there is one source of truth.\
            \ Several models can share a tool."
        required:
          items:
            type: string
          type: array
          title: Required
          description: Request fields this model cannot do without. Everything else
            in the request schema is optional.
        max_char:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Char
          description: Longest `prompt` accepted, in characters. None = unbounded.
      additionalProperties: false
      type: object
      required:
      - id
      - tool_id
      - required
      title: SpeechModelCapability
      description: 'A speech model. Voice choice is the only variable, and it comes
        from

        ``POST /tools/search/voices`` rather than from a fixed list here.'
    StockAssetSearchResult:
      properties:
        asset_id:
          type: string
          title: Asset Id
          description: The ID of the asset.
        title:
          type: string
          title: Title
          description: The title of the asset.
        description:
          type: string
          title: Description
          description: The description of the asset.
        duration_seconds:
          type: number
          title: Duration Seconds
          description: The duration of the asset in seconds. 0.0 for images and stickers.
        width:
          anyOf:
          - type: integer
          - type: 'null'
          title: Width
          description: The width of the asset in pixels, when the source reports it.
        height:
          anyOf:
          - type: integer
          - type: 'null'
          title: Height
          description: The height of the asset in pixels, when the source reports
            it.
        license:
          type: string
          title: License
          description: 'The licence the asset comes under: ''pdm'' (public domain),
            ''cc0'', ''public-domain'', ''pexels'', ''giphy'', ''nasa-media'', or
            another code for one that needs a licence.'
        license_class:
          type: string
          enum:
          - free
          - paid
          title: License Class
          description: '''free'' to use as is, or ''paid'' when it needs a licence
            first.'
      additionalProperties: false
      type: object
      required:
      - asset_id
      - title
      - description
      - duration_seconds
      - width
      - height
      - license
      - license_class
      title: StockAssetSearchResult
    SubscriptionTier:
      type: string
      enum:
      - basic
      - pro
      - expert
      - enterprise_user
      title: SubscriptionTier
      description: 'Named subscription offer; subscriptions that predate tiers read
        as basic.


        ``enterprise_user`` is granted by hand outside Stripe (see

        :mod:`tellers_common.enterprise_user_subscription`) and ranks above every
        paid tier.'
    TaskResponse:
      properties:
        id:
          type: string
          title: Id
        task_type:
          type: string
          title: Task Type
        status:
          type: string
          title: Status
        progress:
          type: number
          title: Progress
        asset_ids:
          items:
            type: string
          type: array
          title: Asset Ids
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        ended_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Ended At
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
      type: object
      required:
      - id
      - task_type
      - status
      - progress
      - asset_ids
      - created_at
      - ended_at
      - error_message
      title: TaskResponse
    TaskStatus:
      type: string
      enum:
      - FAILURE
      - PENDING
      - RECEIVED
      - RETRY
      - REVOKED
      - STARTED
      - SUCCESS
      - PROGRESS
      title: TaskStatus
    TellersAvailableOptions:
      properties:
        verbosity:
          items:
            type: string
            enum:
            - low
            - medium
            - high
          type: array
          title: Verbosity
        reasoning_effort:
          items:
            anyOf:
            - type: string
              enum:
              - none
              - minimal
              - low
              - medium
              - high
              - xhigh
              - max
            - type: 'null'
          type: array
          title: Reasoning Effort
        compaction:
          type: boolean
          title: Compaction
          default: false
        compaction_threshold:
          anyOf:
          - type: integer
          - type: 'null'
          title: Compaction Threshold
      type: object
      required:
      - verbosity
      - reasoning_effort
      title: TellersAvailableOptions
    TellersConfigFile:
      properties:
        entity_to_use:
          items:
            type: string
          type: array
          title: Entity To Use
          default: []
        analysis:
          anyOf:
          - $ref: '#/components/schemas/AssetAnalysisSettings'
          - type: 'null'
        generate_stt_from_op_atom:
          type: boolean
          title: Generate Stt From Op Atom
          default: false
        generate_stt_from_master_clip:
          type: boolean
          title: Generate Stt From Master Clip
          default: true
        generate_stt_with_diarization:
          type: boolean
          title: Generate Stt With Diarization
          description: 'Whether speech-to-text also splits the audio by speaker. On
            by default: it costs no more than a plain transcription, so the transcript
            carries a ''speakers'' timeline naming who talks over each stretch of
            the media unless a config turns it off. The words themselves are unchanged
            either way.'
          default: true
        generate_description_from_op_atom:
          type: boolean
          title: Generate Description From Op Atom
          default: false
        generate_description_from_master_clip:
          type: boolean
          title: Generate Description From Master Clip
          default: true
        delete_after_hours:
          anyOf:
          - type: integer
            maximum: 8760.0
            minimum: 0.0
          - type: 'null'
          title: Delete After Hours
          description: 'Makes new files transient: a file uploaded or generated here
            is deleted this many hours after it is created, and is no longer found
            from then on. 0 keeps files, overriding a parent folder or the user default;
            null inherits. Files already here are not changed.'
        merge_strategy:
          type: string
          enum:
          - merge
          - override
          title: Merge Strategy
          description: How this config combines with the configs of its parent folders.
            'merge' inherits them and overrides field by field; 'override' ignores
            them.
          default: merge
      additionalProperties: true
      type: object
      title: TellersConfigFile
    TellersPreset:
      properties:
        name:
          type: string
          title: Name
        model:
          anyOf:
          - type: string
            enum:
            - gpt-6.2-astra
            - gpt-6.2-sol
            - gpt-6-astra
            - gpt-6.1-sol
            - gpt-6.1-terra
            - gpt-6-sol
            - gpt-6-luna
            - gpt-5.6-sol
            - gpt-5.6-terra
            - gpt-5.6-luna
            - gpt-5.5-2026-04-23
            - gpt-5.5-pro-2026-04-23
            - gpt-5.4-pro-2026-03-05
            - gpt-5.4
            - gpt-5.4-mini
            - gpt-5.3-codex
            - gpt-5.2-2025-12-11
            - gpt-5-mini-2025-08-07
            - gpt-5-nano
          - type: 'null'
          title: Model
        options:
          $ref: '#/components/schemas/TellersPresetOptions'
        required_subscription_tier:
          anyOf:
          - $ref: '#/components/schemas/SubscriptionTier'
          - type: 'null'
          description: Lowest subscription tier that can run this preset (its model
            and priority); null when every user can.
        subscription_locked:
          type: boolean
          title: Subscription Locked
          description: 'True when the caller''s plan is below `required_subscription_tier`:
            show the preset as an upgrade, a request with it is refused (402).'
          default: false
      type: object
      required:
      - name
      - model
      - options
      title: TellersPreset
    TellersPresetOptions:
      properties:
        reasoning_effort:
          anyOf:
          - type: string
            enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
          - type: 'null'
          title: Reasoning Effort
        verbosity:
          anyOf:
          - type: string
            enum:
            - low
            - medium
            - high
          - type: 'null'
          title: Verbosity
        priority:
          anyOf:
          - type: string
            enum:
            - low
            - default
            - high
            - ultra
          - type: 'null'
          title: Priority
      type: object
      required:
      - reasoning_effort
      - verbosity
      - priority
      title: TellersPresetOptions
    TokenSpendCategory:
      type: string
      enum:
      - assistant
      - tool
      - asset_processing
      - transcription
      - export
      title: TokenSpendCategory
      description: What a charge of Tellers tokens paid for, as the user sees it.
    ToolErrorBody:
      properties:
        detail:
          type: string
          title: Detail
          description: Why the call was refused, in the tool's own words.
      type: object
      required:
      - detail
      title: ToolErrorBody
      description: "What a refused tool call returns: FastAPI's ``detail`` envelope.\n\
        \nThe message is the tool's own \u2014 ``_run_tool`` passes ``ToolError.message``\n\
        straight through \u2014 so it already says which plan limit was reached."
    ToolExposure:
      type: string
      enum:
      - search
      - flat_search
      - flat
      title: ToolExposure
      description: "How much of a tool the model is shown up front.\n\nWhat deferral\
        \ hides depends on whether the tool is in a namespace, and the\ndifference\
        \ is the whole point of this enum. Per OpenAI's tool search guide:\na deferred\
        \ tool *inside a namespace* is hidden completely \u2014 the model sees\nonly\
        \ the namespace name and description \u2014 while a deferred *top-level*\n\
        function still shows its name and description, so deferral there only holds\n\
        back the parameter schema. Measured over the 75 tools of 2026-12-01, the\n\
        always-loaded ones included, with ``estimate_tool_schema_tokens``:\n\n==============\
        \  ============================  ==========\nexposure        visible up front\
        \              tokens\n==============  ============================  ==========\n\
        ``search``      namespace descriptions             ~4.4k\n``flat_search``\
        \ 75 tool names + descriptions      ~22.1k\n``flat``        the above plus\
        \ every schema      ~103.7k\n==============  ============================\
        \  ==========\n\n6.8k of the ``flat_search`` figure is ``timeline_apply_patch``:\
        \ a custom\ntool has no parameter schema to defer, so its syntax is description.\
        \ Its\neffect and transition ops are documented in ``timeline_apply_effects``\n\
        instead, whose schema is deferred like any other.\n\n``search`` uses namespace\
        \ descriptions and hides the names inside them;\n``flat_search`` exposes top-level\
        \ tool names and descriptions while\ndeferring only parameter schemas. ``flat``\
        \ removes deferral entirely.\n\nGrouping without deferring is deliberately\
        \ not offered: namespaces exist\nto make search legible, so once every schema\
        \ is up front they buy nothing\nand cost their own descriptions.\n\nThe member\
        \ value is what the API accepts on the wire."
    ToolsCapabilities:
      properties:
        video:
          $ref: '#/components/schemas/VideoCapability'
        image:
          $ref: '#/components/schemas/ImageCapability'
        audio:
          $ref: '#/components/schemas/AudioCapability'
        tts:
          $ref: '#/components/schemas/TtsCapability'
        search_stock:
          $ref: '#/components/schemas/SearchStockCapability'
        search_me:
          $ref: '#/components/schemas/SearchMeCapability'
        search_voices:
          $ref: '#/components/schemas/SearchVoicesCapability'
      additionalProperties: false
      type: object
      required:
      - video
      - image
      - audio
      - tts
      - search_stock
      - search_me
      - search_voices
      title: ToolsCapabilities
      description: "Every ``/tools/*`` capability, keyed by area.\n\nGrouped rather\
        \ than returned as one flat list so a client can jump straight\nto the area\
        \ it cares about \u2014 ``image`` to pick a model, ``search_me`` to see\n\
        which search modes exist \u2014 instead of filtering."
    TtsCapability:
      properties:
        models:
          items:
            $ref: '#/components/schemas/SpeechModelCapability'
          type: array
          title: Models
      additionalProperties: false
      type: object
      required:
      - models
      title: TtsCapability
    UpdateUserRequest:
      properties:
        first_name:
          anyOf:
          - type: string
          - type: 'null'
          title: First Name
        last_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Name
        user_preferences:
          anyOf:
          - $ref: '#/components/schemas/UserPreferences'
          - type: 'null'
      additionalProperties: false
      type: object
      title: UpdateUserRequest
    UseAgentToolRequest:
      properties:
        tool_id:
          type: string
          title: Tool Id
          description: The id of the tool to use
        tool_arguments:
          additionalProperties: true
          type: object
          title: Tool Arguments
          description: The arguments to pass to the tool
      type: object
      required:
      - tool_id
      - tool_arguments
      title: UseAgentToolRequest
    UserPreferences:
      properties:
        analysis:
          anyOf:
          - $ref: '#/components/schemas/AssetAnalysisSettings'
          - type: 'null'
        upload:
          anyOf:
          - $ref: '#/components/schemas/UserUploadPreferences'
          - type: 'null'
          description: 'Upload defaults: whether each uploaded file is transcribed
            and described automatically.'
      additionalProperties: true
      type: object
      title: UserPreferences
    UserUploadPreferences:
      properties:
        generate_stt_from_op_atom:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Generate Stt From Op Atom
          description: Transcribe uploaded Avid OP-Atom MXF files. Applies when a
            file is uploaded. Unset falls back to the app default; a tellers-config
            file in the asset's folder tree that sets this field takes precedence.
        generate_stt_from_master_clip:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Generate Stt From Master Clip
          description: Transcribe uploaded media and master clips. Applies when a
            file is uploaded. Unset falls back to the app default; a tellers-config
            file in the asset's folder tree that sets this field takes precedence.
        generate_stt_with_diarization:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Generate Stt With Diarization
          description: Split upload transcripts by speaker. Applies when a file is
            uploaded. Unset falls back to the app default; a tellers-config file in
            the asset's folder tree that sets this field takes precedence.
        generate_description_from_op_atom:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Generate Description From Op Atom
          description: Generate a description for uploaded Avid OP-Atom MXF files.
            Applies when a file is uploaded. Unset falls back to the app default;
            a tellers-config file in the asset's folder tree that sets this field
            takes precedence.
        generate_description_from_master_clip:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Generate Description From Master Clip
          description: Generate a description for uploaded media and master clips.
            Applies when a file is uploaded. Unset falls back to the app default;
            a tellers-config file in the asset's folder tree that sets this field
            takes precedence.
        delete_after_hours:
          anyOf:
          - type: integer
            maximum: 8760.0
            minimum: 0.0
          - type: 'null'
          title: Delete After Hours
          description: 'Make every new file transient: a file the user uploads or
            generates is deleted this many hours after it is created. 0 or unset keeps
            files. A tellers-config file in the asset''s folder tree that sets this
            field takes precedence.'
      additionalProperties: false
      type: object
      title: UserUploadPreferences
      description: 'What runs automatically on every file the user uploads.


        Same fields, same meaning as on ``TellersConfigFile``. Resolution order is

        the folder''s tellers-config, then these, then the app default.'
    ValidatedUserInfo:
      properties:
        email:
          type: string
          title: Email
        right:
          type: string
          title: Right
        can_share:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Can Share
          description: 'Whether the person may share onward: ADMIN, or a share with
            can_share. Null for chats, which cannot be shared onward.'
      type: object
      required:
      - email
      - right
      title: ValidatedUserInfo
      description: User email with their effective right on the asset.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    VersionReference:
      properties:
        embedding_space:
          type: string
          title: Embedding Space
        embedding_strategy:
          type: string
          title: Embedding Strategy
        dimensionality:
          type: integer
          title: Dimensionality
      type: object
      required:
      - embedding_space
      - embedding_strategy
      - dimensionality
      title: VersionReference
    VideoCapability:
      properties:
        models:
          items:
            $ref: '#/components/schemas/VideoModelCapability'
          type: array
          title: Models
      additionalProperties: false
      type: object
      required:
      - models
      title: VideoCapability
    VideoModelCapability:
      properties:
        id:
          type: string
          title: Id
          description: Value to pass as `model`.
        tool_id:
          type: string
          title: Tool Id
          description: "The agent tool backing this model. Join to `available_agent_tools`\
            \ in GET /settings for its display name, description and pricing \u2014\
            \ kept there rather than duplicated here so there is one source of truth.\
            \ Several models can share a tool."
        required:
          items:
            type: string
          type: array
          title: Required
          description: Request fields this model cannot do without. Everything else
            in the request schema is optional.
        formats:
          items:
            type: string
          type: array
          title: Formats
          description: Aspect ratios acted on.
        resolutions:
          items:
            type: string
          type: array
          title: Resolutions
          description: Resolutions acted on. Empty = field ignored.
        supports_input_frame:
          type: boolean
          title: Supports Input Frame
          description: Whether `input_frame` (start frame) is used.
        supports_output_frame:
          type: boolean
          title: Supports Output Frame
          description: Whether `output_frame` (end frame) is used. Pair it with `input_frame`;
            some models reject an end frame on its own.
        supports_input_audio:
          type: boolean
          title: Supports Input Audio
          description: Whether `input_audio` (audio reference) is used.
        supports_frame_timestamp:
          type: boolean
          title: Supports Frame Timestamp
          description: Whether a frame reference may pin a `timestamp_seconds` / `is_last_frame`.
            False means only a bare asset id is accepted.
        format_requires_resolution:
          type: boolean
          title: Format Requires Resolution
          description: This model only acts on `format` when `resolution` is also
            given; sent alone it would be ignored, so it is rejected.
          default: false
        format_ignored_with_input_frame:
          type: boolean
          title: Format Ignored With Input Frame
          description: This model takes its aspect ratio from `input_frame` whenever
            one is given; `format` sent alongside would be ignored, so the pair is
            rejected. Crop the frame to the shape you want instead.
          default: false
        supports_audio_range:
          type: boolean
          title: Supports Audio Range
          description: Whether `input_audio` may pin a time range. False means only
            a bare asset id is accepted.
        max_char:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Char
          description: Longest `prompt` accepted, in characters. None = unbounded.
      additionalProperties: false
      type: object
      required:
      - id
      - tool_id
      - required
      - formats
      - resolutions
      - supports_input_frame
      - supports_output_frame
      - supports_input_audio
      - supports_frame_timestamp
      - supports_audio_range
      title: VideoModelCapability
      description: "What one video model accepts, as published by ``GET /tools/models``.\n\
        \n``formats`` / ``resolutions`` list the values the model actually *acts on*.\n\
        An empty list means the field is ignored and the model's native output is\n\
        used \u2014 not that any value is accepted."
